From eeffafd763c635a9ceb7aa622d04a0ef191646fc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 20 Jun 2025 02:54:33 +0000 Subject: [PATCH 001/143] build(deps): bump openid-client from 6.5.1 to 6.5.3 Bumps [openid-client](https://github.com/panva/openid-client) from 6.5.1 to 6.5.3. - [Release notes](https://github.com/panva/openid-client/releases) - [Changelog](https://github.com/panva/openid-client/blob/main/CHANGELOG.md) - [Commits](https://github.com/panva/openid-client/compare/v6.5.1...v6.5.3) --- updated-dependencies: - dependency-name: openid-client dependency-version: 6.5.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6be08562e8..9e1f86805d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3022,9 +3022,9 @@ } }, "node_modules/oauth4webapi": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.5.2.tgz", - "integrity": "sha512-VYz5BaP3izIrUc1GAVzIoz4JnljiW0YAUFObMBwsqDnfHxz2sjLu3W7/8vE8Ms9IbMewN9+1kcvhY3tMscAeGQ==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.5.3.tgz", + "integrity": "sha512-2bnHosmBLAQpXNBLOvaJMyMkr4Yya5ohE5Q9jqyxiN+aa7GFCzvDN1RRRMrp0NkfqRR2MTaQNkcSUCCjILD9oQ==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/panva" @@ -3040,13 +3040,13 @@ } }, "node_modules/openid-client": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.5.1.tgz", - "integrity": "sha512-DNq7s+Tm9wfMUTltl+kUJzwi+bsbeiZycDm1gJQbX6MTHwo1+Q0I3F+ccsxi1T3mYMaHATCSnWDridkZ3hnu1g==", + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.5.3.tgz", + "integrity": "sha512-PII6MybD2VwZyWFlSwhQDflSsDt0PEX/o715shdXcORqaFze6/31RqztxjlJNursDABgwd41GnOqKcttYQRcUw==", "license": "MIT", "dependencies": { "jose": "^6.0.11", - "oauth4webapi": "^3.5.2" + "oauth4webapi": "^3.5.3" }, "funding": { "url": "https://github.com/sponsors/panva" From d9660d6496a386b10663cd89c8e3f04de971c687 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Jun 2025 02:39:48 +0000 Subject: [PATCH 002/143] build(deps): bump openid-client from 6.5.3 to 6.6.1 Bumps [openid-client](https://github.com/panva/openid-client) from 6.5.3 to 6.6.1. - [Release notes](https://github.com/panva/openid-client/releases) - [Changelog](https://github.com/panva/openid-client/blob/main/CHANGELOG.md) - [Commits](https://github.com/panva/openid-client/compare/v6.5.3...v6.6.1) --- updated-dependencies: - dependency-name: openid-client dependency-version: 6.6.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9e1f86805d..618594c34a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3040,9 +3040,9 @@ } }, "node_modules/openid-client": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.5.3.tgz", - "integrity": "sha512-PII6MybD2VwZyWFlSwhQDflSsDt0PEX/o715shdXcORqaFze6/31RqztxjlJNursDABgwd41GnOqKcttYQRcUw==", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.6.1.tgz", + "integrity": "sha512-GmqoICGMI3IyFFjhvXxad8of4QWk2D0tm4vdJkldGm9nw7J3p1f7LPLWgGeFuKuw8HjDVe8Dd8QLGBe0NFvSSg==", "license": "MIT", "dependencies": { "jose": "^6.0.11", From 3670dbf76af9a5b20ad47c1941090fe7a82ebb3a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Jun 2025 02:47:16 +0000 Subject: [PATCH 003/143] build(deps-dev): bump prettier from 3.5.3 to 3.6.0 Bumps [prettier](https://github.com/prettier/prettier) from 3.5.3 to 3.6.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.5.3...3.6.0) --- updated-dependencies: - dependency-name: prettier dependency-version: 3.6.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9e1f86805d..0ab5af4728 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3207,9 +3207,9 @@ } }, "node_modules/prettier": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", - "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.0.tgz", + "integrity": "sha512-ujSB9uXHJKzM/2GBuE0hBOUgC77CN3Bnpqa+g80bkv3T3A93wL/xlzDATHhnhkzifz/UE2SNOvmbTz5hSkDlHw==", "dev": true, "license": "MIT", "bin": { From b3ff0b6ac908a38e27a5d6ca5cca8984b545975f Mon Sep 17 00:00:00 2001 From: Prashant Farkya Date: Mon, 23 Jun 2025 20:06:05 +0530 Subject: [PATCH 004/143] FIX: Adding support for multiple client --- src/config.ts | 4 ++-- src/config_test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.ts b/src/config.ts index 526ce20861..6c0dd335c4 100644 --- a/src/config.ts +++ b/src/config.ts @@ -58,7 +58,7 @@ function fileExists(filepath: string): boolean { export interface ApiType {} export class KubeConfig implements SecurityAuthentication { - private static authenticators: Authenticator[] = [ + private authenticators: Authenticator[] = [ new AzureAuth(), new GoogleCloudPlatformAuth(), new ExecAuth(), @@ -596,7 +596,7 @@ export class KubeConfig implements SecurityAuthentication { if (!user) { return; } - let authenticator = KubeConfig.authenticators.find((elt: Authenticator) => { + let authenticator = this.authenticators.find((elt: Authenticator) => { return elt.isAuthProvider(user); }); diff --git a/src/config_test.ts b/src/config_test.ts index ea8e4e2dc1..96e126a09b 100644 --- a/src/config_test.ts +++ b/src/config_test.ts @@ -1345,7 +1345,7 @@ describe('KubeConfig', () => { // TODO: inject the exec command here? const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - const execAuthenticator = (KubeConfig as any).authenticators.find( + const execAuthenticator = (config as any).authenticators.find( (authenticator) => authenticator instanceof ExecAuth, ); deepStrictEqual(execAuthenticator.tokenCache.exec, JSON.parse(responseStr)); From c361747451cb6920df804c079e1d38c14ac26a6e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Jun 2025 03:37:03 +0000 Subject: [PATCH 005/143] build(deps-dev): bump typescript-eslint from 8.34.1 to 8.35.0 Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.34.1 to 8.35.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.35.0/packages/typescript-eslint) --- updated-dependencies: - dependency-name: typescript-eslint dependency-version: 8.35.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 118 +++++++++++++++++++++++----------------------- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/package-lock.json b/package-lock.json index add075d6d4..ac448b0646 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1065,17 +1065,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.34.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.34.1.tgz", - "integrity": "sha512-STXcN6ebF6li4PxwNeFnqF8/2BNDvBupf2OPx2yWNzr6mKNGF7q49VM00Pz5FaomJyqvbXpY6PhO+T9w139YEQ==", + "version": "8.35.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.35.0.tgz", + "integrity": "sha512-ijItUYaiWuce0N1SoSMrEd0b6b6lYkYt99pqCPfybd+HKVXtEvYhICfLdwp42MhiI5mp0oq7PKEL+g1cNiz/Eg==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.34.1", - "@typescript-eslint/type-utils": "8.34.1", - "@typescript-eslint/utils": "8.34.1", - "@typescript-eslint/visitor-keys": "8.34.1", + "@typescript-eslint/scope-manager": "8.35.0", + "@typescript-eslint/type-utils": "8.35.0", + "@typescript-eslint/utils": "8.35.0", + "@typescript-eslint/visitor-keys": "8.35.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", @@ -1089,7 +1089,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.34.1", + "@typescript-eslint/parser": "^8.35.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.9.0" } @@ -1105,16 +1105,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.34.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.34.1.tgz", - "integrity": "sha512-4O3idHxhyzjClSMJ0a29AcoK0+YwnEqzI6oz3vlRf3xw0zbzt15MzXwItOlnr5nIth6zlY2RENLsOPvhyrKAQA==", + "version": "8.35.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.35.0.tgz", + "integrity": "sha512-6sMvZePQrnZH2/cJkwRpkT7DxoAWh+g6+GFRK6bV3YQo7ogi3SX5rgF6099r5Q53Ma5qeT7LGmOmuIutF4t3lA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.34.1", - "@typescript-eslint/types": "8.34.1", - "@typescript-eslint/typescript-estree": "8.34.1", - "@typescript-eslint/visitor-keys": "8.34.1", + "@typescript-eslint/scope-manager": "8.35.0", + "@typescript-eslint/types": "8.35.0", + "@typescript-eslint/typescript-estree": "8.35.0", + "@typescript-eslint/visitor-keys": "8.35.0", "debug": "^4.3.4" }, "engines": { @@ -1130,14 +1130,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.34.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.34.1.tgz", - "integrity": "sha512-nuHlOmFZfuRwLJKDGQOVc0xnQrAmuq1Mj/ISou5044y1ajGNp2BNliIqp7F2LPQ5sForz8lempMFCovfeS1XoA==", + "version": "8.35.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.35.0.tgz", + "integrity": "sha512-41xatqRwWZuhUMF/aZm2fcUsOFKNcG28xqRSS6ZVr9BVJtGExosLAm5A1OxTjRMagx8nJqva+P5zNIGt8RIgbQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.34.1", - "@typescript-eslint/types": "^8.34.1", + "@typescript-eslint/tsconfig-utils": "^8.35.0", + "@typescript-eslint/types": "^8.35.0", "debug": "^4.3.4" }, "engines": { @@ -1152,14 +1152,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.34.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.34.1.tgz", - "integrity": "sha512-beu6o6QY4hJAgL1E8RaXNC071G4Kso2MGmJskCFQhRhg8VOH/FDbC8soP8NHN7e/Hdphwp8G8cE6OBzC8o41ZA==", + "version": "8.35.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.35.0.tgz", + "integrity": "sha512-+AgL5+mcoLxl1vGjwNfiWq5fLDZM1TmTPYs2UkyHfFhgERxBbqHlNjRzhThJqz+ktBqTChRYY6zwbMwy0591AA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.34.1", - "@typescript-eslint/visitor-keys": "8.34.1" + "@typescript-eslint/types": "8.35.0", + "@typescript-eslint/visitor-keys": "8.35.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1170,9 +1170,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.34.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.34.1.tgz", - "integrity": "sha512-K4Sjdo4/xF9NEeA2khOb7Y5nY6NSXBnod87uniVYW9kHP+hNlDV8trUSFeynA2uxWam4gIWgWoygPrv9VMWrYg==", + "version": "8.35.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.35.0.tgz", + "integrity": "sha512-04k/7247kZzFraweuEirmvUj+W3bJLI9fX6fbo1Qm2YykuBvEhRTPl8tcxlYO8kZZW+HIXfkZNoasVb8EV4jpA==", "dev": true, "license": "MIT", "engines": { @@ -1187,14 +1187,14 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.34.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.34.1.tgz", - "integrity": "sha512-Tv7tCCr6e5m8hP4+xFugcrwTOucB8lshffJ6zf1mF1TbU67R+ntCc6DzLNKM+s/uzDyv8gLq7tufaAhIBYeV8g==", + "version": "8.35.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.35.0.tgz", + "integrity": "sha512-ceNNttjfmSEoM9PW87bWLDEIaLAyR+E6BoYJQ5PfaDau37UGca9Nyq3lBk8Bw2ad0AKvYabz6wxc7DMTO2jnNA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "8.34.1", - "@typescript-eslint/utils": "8.34.1", + "@typescript-eslint/typescript-estree": "8.35.0", + "@typescript-eslint/utils": "8.35.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, @@ -1211,9 +1211,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.34.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.34.1.tgz", - "integrity": "sha512-rjLVbmE7HR18kDsjNIZQHxmv9RZwlgzavryL5Lnj2ujIRTeXlKtILHgRNmQ3j4daw7zd+mQgy+uyt6Zo6I0IGA==", + "version": "8.35.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.35.0.tgz", + "integrity": "sha512-0mYH3emanku0vHw2aRLNGqe7EXh9WHEhi7kZzscrMDf6IIRUQ5Jk4wp1QrledE/36KtdZrVfKnE32eZCf/vaVQ==", "dev": true, "license": "MIT", "engines": { @@ -1225,16 +1225,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.34.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.34.1.tgz", - "integrity": "sha512-rjCNqqYPuMUF5ODD+hWBNmOitjBWghkGKJg6hiCHzUvXRy6rK22Jd3rwbP2Xi+R7oYVvIKhokHVhH41BxPV5mA==", + "version": "8.35.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.35.0.tgz", + "integrity": "sha512-F+BhnaBemgu1Qf8oHrxyw14wq6vbL8xwWKKMwTMwYIRmFFY/1n/9T/jpbobZL8vp7QyEUcC6xGrnAO4ua8Kp7w==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.34.1", - "@typescript-eslint/tsconfig-utils": "8.34.1", - "@typescript-eslint/types": "8.34.1", - "@typescript-eslint/visitor-keys": "8.34.1", + "@typescript-eslint/project-service": "8.35.0", + "@typescript-eslint/tsconfig-utils": "8.35.0", + "@typescript-eslint/types": "8.35.0", + "@typescript-eslint/visitor-keys": "8.35.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1254,16 +1254,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.34.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.34.1.tgz", - "integrity": "sha512-mqOwUdZ3KjtGk7xJJnLbHxTuWVn3GO2WZZuM+Slhkun4+qthLdXx32C8xIXbO1kfCECb3jIs3eoxK3eryk7aoQ==", + "version": "8.35.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.35.0.tgz", + "integrity": "sha512-nqoMu7WWM7ki5tPgLVsmPM8CkqtoPUG6xXGeefM5t4x3XumOEKMoUZPdi+7F+/EotukN4R9OWdmDxN80fqoZeg==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.34.1", - "@typescript-eslint/types": "8.34.1", - "@typescript-eslint/typescript-estree": "8.34.1" + "@typescript-eslint/scope-manager": "8.35.0", + "@typescript-eslint/types": "8.35.0", + "@typescript-eslint/typescript-estree": "8.35.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1278,13 +1278,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.34.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.34.1.tgz", - "integrity": "sha512-xoh5rJ+tgsRKoXnkBPFRLZ7rjKM0AfVbC68UZ/ECXoDbfggb9RbEySN359acY1vS3qZ0jVTVWzbtfapwm5ztxw==", + "version": "8.35.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.35.0.tgz", + "integrity": "sha512-zTh2+1Y8ZpmeQaQVIc/ZZxsx8UzgKJyNg1PTvjzC7WMhPSVS8bfDX34k1SrwOf016qd5RU3az2UxUNue3IfQ5g==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.34.1", + "@typescript-eslint/types": "8.35.0", "eslint-visitor-keys": "^4.2.1" }, "engines": { @@ -3834,15 +3834,15 @@ } }, "node_modules/typescript-eslint": { - "version": "8.34.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.34.1.tgz", - "integrity": "sha512-XjS+b6Vg9oT1BaIUfkW3M3LvqZE++rbzAMEHuccCfO/YkP43ha6w3jTEMilQxMF92nVOYCcdjv1ZUhAa1D/0ow==", + "version": "8.35.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.35.0.tgz", + "integrity": "sha512-uEnz70b7kBz6eg/j0Czy6K5NivaYopgxRjsnAJ2Fx5oTLo3wefTHIbL7AkQr1+7tJCRVpTs/wiM8JR/11Loq9A==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.34.1", - "@typescript-eslint/parser": "8.34.1", - "@typescript-eslint/utils": "8.34.1" + "@typescript-eslint/eslint-plugin": "8.35.0", + "@typescript-eslint/parser": "8.35.0", + "@typescript-eslint/utils": "8.35.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" From 598a3ad0418b0ce6dfe1c77ac761f802199440f8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 25 Jun 2025 02:19:37 +0000 Subject: [PATCH 006/143] build(deps): bump @types/node from 24.0.3 to 24.0.4 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.0.3 to 24.0.4. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.0.4 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index ac448b0646..7f51861cdc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1030,9 +1030,9 @@ } }, "node_modules/@types/node": { - "version": "24.0.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.3.tgz", - "integrity": "sha512-R4I/kzCYAdRLzfiCabn9hxWfbuHS573x+r0dJMkkzThEa7pbrcDWK+9zu3e7aBOouf+rQAciqPFMnxwr0aWgKg==", + "version": "24.0.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.4.tgz", + "integrity": "sha512-ulyqAkrhnuNq9pB76DRBTkcS6YsmDALy6Ua63V8OhrOBgbcYt6IOdzpw5P1+dyRIyMerzLkeYWBeOXPpA9GMAA==", "license": "MIT", "dependencies": { "undici-types": "~7.8.0" From 5bdd3f955a2dcc965e3b147fa746efec9cf6ae97 Mon Sep 17 00:00:00 2001 From: Philippe Martin Date: Wed, 25 Jun 2025 11:22:16 +0200 Subject: [PATCH 007/143] fix: make yaml functions use serializer --- src/object.ts | 38 ++------------- src/util.ts | 29 ++++++++++++ src/util_test.ts | 7 +++ src/yaml.ts | 41 ++++++++++++++-- src/yaml_test.ts | 119 +++++++++++++++++++++++++++++++++++++++++++++-- 5 files changed, 194 insertions(+), 40 deletions(-) diff --git a/src/object.ts b/src/object.ts index 0548b03a04..7761cd26dd 100644 --- a/src/object.ts +++ b/src/object.ts @@ -15,6 +15,7 @@ import { ObjectSerializer } from './serializer.js'; import { KubernetesListObject, KubernetesObject } from './types.js'; import { from, mergeMap, of } from './gen/rxjsStub.js'; import { PatchStrategy } from './patch.js'; +import { getSerializationType } from './util.js'; /** Kubernetes API verbs. */ type KubernetesApiAction = 'create' | 'delete' | 'patch' | 'read' | 'list' | 'replace'; @@ -29,11 +30,6 @@ type KubernetesObjectHeader = Pic }; }; -interface GroupVersion { - group: string; - version: string; -} - /** * Dynamically construct Kubernetes API request URIs so client does not have to know what type of object it is acting * on. @@ -107,7 +103,7 @@ export class KubernetesObjectApi { if (fieldManager !== undefined) { requestContext.setQueryParam('fieldManager', ObjectSerializer.serialize(fieldManager, 'string')); } - const type = await this.getSerializationType(spec.apiVersion, spec.kind); + const type = getSerializationType(spec.apiVersion, spec.kind); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([]); @@ -269,7 +265,7 @@ export class KubernetesObjectApi { requestContext.setQueryParam('force', ObjectSerializer.serialize(force, 'boolean')); } - const type = await this.getSerializationType(spec.apiVersion, spec.kind); + const type = getSerializationType(spec.apiVersion, spec.kind); // Body Params const serializedBody = ObjectSerializer.stringify( @@ -468,7 +464,7 @@ export class KubernetesObjectApi { requestContext.setQueryParam('fieldManager', ObjectSerializer.serialize(fieldManager, 'string')); } - const type = await this.getSerializationType(spec.apiVersion, spec.kind); + const type = getSerializationType(spec.apiVersion, spec.kind); // Body Params const contentType = ObjectSerializer.getPreferredMediaType([]); @@ -593,30 +589,6 @@ export class KubernetesObjectApi { } } - protected async getSerializationType(apiVersion?: string, kind?: string): Promise { - if (apiVersion === undefined || kind === undefined) { - return 'KubernetesObject'; - } - // Types are defined in src/gen/api/models with the format "". - // Version and Kind are in PascalCase. - const gv = this.groupVersion(apiVersion); - const version = gv.version.charAt(0).toUpperCase() + gv.version.slice(1); - return `${version}${kind}`; - } - - protected groupVersion(apiVersion: string): GroupVersion { - const v = apiVersion.split('/'); - return v.length === 1 - ? { - group: 'core', - version: apiVersion, - } - : { - group: v[0], - version: v[1], - }; - } - protected async requestPromise( requestContext: RequestContext, type?: string, @@ -670,7 +642,7 @@ export class KubernetesObjectApi { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const data = ObjectSerializer.parse(await response.body.text(), contentType); if (type === undefined) { - type = await this.getSerializationType(data.apiVersion, data.kind); + type = getSerializationType(data.apiVersion, data.kind); } if (!type) { diff --git a/src/util.ts b/src/util.ts index 791d89c728..e502e600d9 100644 --- a/src/util.ts +++ b/src/util.ts @@ -164,3 +164,32 @@ export function normalizeResponseHeaders(response: Response): { [key: string]: s return normalizedHeaders; } + +export function getSerializationType(apiVersion?: string, kind?: string): string { + if (apiVersion === undefined || kind === undefined) { + return 'KubernetesObject'; + } + // Types are defined in src/gen/api/models with the format "". + // Version and Kind are in PascalCase. + const gv = groupVersion(apiVersion); + const version = gv.version.charAt(0).toUpperCase() + gv.version.slice(1); + return `${version}${kind}`; +} + +interface GroupVersion { + group: string; + version: string; +} + +function groupVersion(apiVersion: string): GroupVersion { + const v = apiVersion.split('/'); + return v.length === 1 + ? { + group: 'core', + version: apiVersion, + } + : { + group: v[0], + version: v[1], + }; +} diff --git a/src/util_test.ts b/src/util_test.ts index dd1061f8d1..74a323a866 100644 --- a/src/util_test.ts +++ b/src/util_test.ts @@ -9,6 +9,7 @@ import { quantityToScalar, totalCPU, totalMemory, + getSerializationType, } from './util.js'; describe('Utils', () => { @@ -142,4 +143,10 @@ describe('Utils', () => { deepStrictEqual(normalizeResponseHeaders(response), { foo: 'bar', baz: 'k8s' }); }); + + it('should get the serialization type correctly', () => { + strictEqual(getSerializationType('v1', 'Pod'), 'V1Pod'); + strictEqual(getSerializationType('apps/v1', 'Deployment'), 'V1Deployment'); + strictEqual(getSerializationType(undefined, undefined), 'KubernetesObject'); + }); }); diff --git a/src/yaml.ts b/src/yaml.ts index 7682392ae6..09468a3e5d 100644 --- a/src/yaml.ts +++ b/src/yaml.ts @@ -1,13 +1,48 @@ import yaml from 'js-yaml'; +import { getSerializationType } from './util.js'; +import { KubernetesObject } from './types.js'; +import { ObjectSerializer } from './serializer.js'; +/** + * Load a Kubernetes object from YAML. + * @param data - The YAML string to load. + * @param opts - Optional YAML load options. + * @returns The deserialized Kubernetes object. + */ export function loadYaml(data: string, opts?: yaml.LoadOptions): T { - return yaml.load(data, opts) as any as T; + const yml = yaml.load(data, opts) as any as KubernetesObject; + if (!yml) { + throw new Error('Failed to load YAML'); + } + const type = getSerializationType(yml.apiVersion, yml.kind); + + return ObjectSerializer.deserialize(yml, type) as T; } +/** + * Load all Kubernetes objects from YAML. + * @param data - The YAML string to load. + * @param opts - Optional YAML load options. + * @returns An array of deserialized Kubernetes objects. + */ export function loadAllYaml(data: string, opts?: yaml.LoadOptions): any[] { - return yaml.loadAll(data, undefined, opts); + const ymls = yaml.loadAll(data, undefined, opts); + return ymls.map((yml) => { + const obj = yml as KubernetesObject; + const type = getSerializationType(obj.apiVersion, obj.kind); + return ObjectSerializer.deserialize(yml, type); + }); } +/** + * Dump a Kubernetes object to YAML. + * @param object - The Kubernetes object to dump. + * @param opts - Optional YAML dump options. + * @returns The YAML string representation of the serialized Kubernetes object. + */ export function dumpYaml(object: any, opts?: yaml.DumpOptions): string { - return yaml.dump(object, opts); + const kubeObject = object as KubernetesObject; + const type = getSerializationType(kubeObject.apiVersion, kubeObject.kind); + const serialized = ObjectSerializer.serialize(kubeObject, type); + return yaml.dump(serialized, opts); } diff --git a/src/yaml_test.ts b/src/yaml_test.ts index ba53293dc0..958f7ba45b 100644 --- a/src/yaml_test.ts +++ b/src/yaml_test.ts @@ -1,6 +1,6 @@ import { describe, it } from 'node:test'; -import { deepStrictEqual, strictEqual } from 'node:assert'; -import { V1Namespace } from './api.js'; +import { deepEqual, deepStrictEqual, strictEqual } from 'node:assert'; +import { V1CustomResourceDefinition, V1Namespace } from './api.js'; import { dumpYaml, loadAllYaml, loadYaml } from './yaml.js'; describe('yaml', () => { @@ -12,6 +12,43 @@ describe('yaml', () => { strictEqual(ns.kind, 'Namespace'); strictEqual(ns.metadata!.name, 'some-namespace'); }); + it('should load safely by mapping properties correctly', () => { + const yaml = ` +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: my-crd.example.com +spec: + group: example.com + versions: + - name: v1 + served: true + storage: true + schema: + openAPIV3Schema: + type: object + properties: + foobar: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true +`; + const ns = loadYaml(yaml); + + strictEqual(ns.apiVersion, 'apiextensions.k8s.io/v1'); + strictEqual(ns.kind, 'CustomResourceDefinition'); + strictEqual(ns.metadata!.name, 'my-crd.example.com'); + strictEqual( + ns.spec.versions[0]!.schema!.openAPIV3Schema!.properties!['foobar'].x_kubernetes_int_or_string, + true, + ); + strictEqual( + ns.spec.versions[0]!.schema!.openAPIV3Schema!.properties!['foobar']['x-kubernetes-int-or-string'], + undefined, + ); + }); + it('should load all safely', () => { const yaml = 'apiVersion: v1\n' + @@ -23,15 +60,49 @@ describe('yaml', () => { 'kind: Pod\n' + 'metadata:\n' + ' name: some-pod\n' + - ' namespace: some-ns\n'; + ' namespace: some-ns\n' + + '---\n' + + 'apiVersion: apiextensions.k8s.io/v1\n' + + 'kind: CustomResourceDefinition\n' + + 'metadata:\n' + + ' name: my-crd.example.com\n' + + 'spec:\n' + + ' group: example.com\n' + + ' versions:\n' + + ' - name: v1\n' + + ' served: true\n' + + ' storage: true\n' + + ' schema:\n' + + ' openAPIV3Schema:\n' + + ' type: object\n' + + ' properties:\n' + + ' foobar:\n' + + ' anyOf:\n' + + ' - type: integer\n' + + ' - type: string\n' + + ' x-kubernetes-int-or-string: true\n'; const objects = loadAllYaml(yaml); - strictEqual(objects.length, 2); + strictEqual(objects.length, 3); 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'); + strictEqual(objects[2].apiVersion, 'apiextensions.k8s.io/v1'); + strictEqual(objects[2].kind, 'CustomResourceDefinition'); + strictEqual(objects[2].metadata!.name, 'my-crd.example.com'); + strictEqual( + objects[2].spec.versions[0]!.schema!.openAPIV3Schema!.properties!['foobar'] + .x_kubernetes_int_or_string, + true, + ); + strictEqual( + objects[2].spec.versions[0]!.schema!.openAPIV3Schema!.properties!['foobar'][ + 'x-kubernetes-int-or-string' + ], + undefined, + ); }); it('should round trip successfully', () => { const expected = { @@ -43,4 +114,44 @@ describe('yaml', () => { const actual = loadYaml(yamlString); deepStrictEqual(actual, expected); }); + + it('should round trip successfully with mapped properties', () => { + const expected: V1CustomResourceDefinition = { + apiVersion: 'apiextensions.k8s.io/v1', + kind: 'CustomResourceDefinition', + metadata: { + name: 'my-crd.example.com', + }, + spec: { + group: 'example.com', + names: { + kind: 'MyCRD', + plural: 'mycrds', + }, + scope: 'Namespaced', + versions: [ + { + name: 'v1', + schema: { + openAPIV3Schema: { + properties: { + foobar: { + anyOf: [{ type: 'integer' }, { type: 'string' }], + x_kubernetes_int_or_string: true, + }, + }, + type: 'object', + }, + }, + served: true, + storage: true, + }, + ], + }, + }; + const yamlString = dumpYaml(expected); + const actual = loadYaml(yamlString); + // not using strict equality as types are not matching + deepEqual(actual, expected); + }); }); From c01b57c09b045aed44f8bb312ec22508904bfc8b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 26 Jun 2025 02:47:24 +0000 Subject: [PATCH 008/143] build(deps-dev): bump prettier from 3.6.0 to 3.6.1 Bumps [prettier](https://github.com/prettier/prettier) from 3.6.0 to 3.6.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.6.0...3.6.1) --- updated-dependencies: - dependency-name: prettier dependency-version: 3.6.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7f51861cdc..b9c7f483c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3207,9 +3207,9 @@ } }, "node_modules/prettier": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.0.tgz", - "integrity": "sha512-ujSB9uXHJKzM/2GBuE0hBOUgC77CN3Bnpqa+g80bkv3T3A93wL/xlzDATHhnhkzifz/UE2SNOvmbTz5hSkDlHw==", + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.1.tgz", + "integrity": "sha512-5xGWRa90Sp2+x1dQtNpIpeOQpTDBs9cZDmA/qs2vDNN2i18PdapqY7CmBeyLlMuGqXJRIOPaCaVZTLNQRWUH/A==", "dev": true, "license": "MIT", "bin": { From 1c6ec391768b6ce0b6a1a73865dcd284e54f6bdf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jun 2025 03:24:40 +0000 Subject: [PATCH 009/143] build(deps-dev): bump @eslint/js from 9.29.0 to 9.30.0 Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.29.0 to 9.30.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/commits/v9.30.0/packages/js) --- updated-dependencies: - dependency-name: "@eslint/js" dependency-version: 9.30.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index b9c7f483c8..e46cb0c579 100644 --- a/package-lock.json +++ b/package-lock.json @@ -632,11 +632,10 @@ } }, "node_modules/@eslint/js": { - "version": "9.29.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.29.0.tgz", - "integrity": "sha512-3PIF4cBw/y+1u2EazflInpV+lYsSG0aByVIQzAgb1m1MhHFSbqTyNqtBKHgWf/9Ykud+DhILS9EGkmekVhbKoQ==", + "version": "9.30.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.30.0.tgz", + "integrity": "sha512-Wzw3wQwPvc9sHM+NjakWTcPx11mbZyiYHuwWa/QfZ7cIRX7WK54PSk7bdyXDaoaopUcMatv1zaQvOAAO8hCdww==", "dev": true, - "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -2018,6 +2017,18 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint/node_modules/@eslint/js": { + "version": "9.29.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.29.0.tgz", + "integrity": "sha512-3PIF4cBw/y+1u2EazflInpV+lYsSG0aByVIQzAgb1m1MhHFSbqTyNqtBKHgWf/9Ykud+DhILS9EGkmekVhbKoQ==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, "node_modules/eslint/node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", From 15ae1dba6f7eb2e2513870c62667ba5088d40c00 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jun 2025 03:25:30 +0000 Subject: [PATCH 010/143] build(deps-dev): bump eslint from 9.29.0 to 9.30.0 Bumps [eslint](https://github.com/eslint/eslint) from 9.29.0 to 9.30.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v9.29.0...v9.30.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 9.30.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index b9c7f483c8..a23b1d2fd6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -522,11 +522,10 @@ } }, "node_modules/@eslint/config-array": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.1.tgz", - "integrity": "sha512-OL0RJzC/CBzli0DrrR31qzj6d6i6Mm3HByuhflhl4LOBiWxN+3i6/t/ZQQNii4tjksXi8r2CRW1wMpWA2ULUEw==", + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz", + "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@eslint/object-schema": "^2.1.6", "debug": "^4.3.1", @@ -541,7 +540,6 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", "dev": true, - "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -552,7 +550,6 @@ "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" }, @@ -561,11 +558,10 @@ } }, "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==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.0.tgz", + "integrity": "sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==", "dev": true, - "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } @@ -632,11 +628,10 @@ } }, "node_modules/@eslint/js": { - "version": "9.29.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.29.0.tgz", - "integrity": "sha512-3PIF4cBw/y+1u2EazflInpV+lYsSG0aByVIQzAgb1m1MhHFSbqTyNqtBKHgWf/9Ykud+DhILS9EGkmekVhbKoQ==", + "version": "9.30.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.30.0.tgz", + "integrity": "sha512-Wzw3wQwPvc9sHM+NjakWTcPx11mbZyiYHuwWa/QfZ7cIRX7WK54PSk7bdyXDaoaopUcMatv1zaQvOAAO8hCdww==", "dev": true, - "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -649,7 +644,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" } @@ -1909,19 +1903,18 @@ } }, "node_modules/eslint": { - "version": "9.29.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.29.0.tgz", - "integrity": "sha512-GsGizj2Y1rCWDu6XoEekL3RLilp0voSePurjZIkxL3wlm5o5EC9VpgaP7lrCvjnkuLvzFBQWB3vWB3K5KQTveQ==", + "version": "9.30.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.30.0.tgz", + "integrity": "sha512-iN/SiPxmQu6EVkf+m1qpBxzUhE12YqFLOSySuOyVLJLEF9nzTf+h/1AJYc1JWzCnktggeNrjvQGLngDzXirU6g==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.20.1", - "@eslint/config-helpers": "^0.2.1", + "@eslint/config-array": "^0.21.0", + "@eslint/config-helpers": "^0.3.0", "@eslint/core": "^0.14.0", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.29.0", + "@eslint/js": "9.30.0", "@eslint/plugin-kit": "^0.3.1", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", From 6080f755a501ebdffd41b125bbcf71f0ac19cf09 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jun 2025 03:27:11 +0000 Subject: [PATCH 011/143] build(deps): bump ws from 8.18.2 to 8.18.3 Bumps [ws](https://github.com/websockets/ws) from 8.18.2 to 8.18.3. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](https://github.com/websockets/ws/compare/8.18.2...8.18.3) --- updated-dependencies: - dependency-name: ws dependency-version: 8.18.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index b9c7f483c8..9fb4e5209b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4038,10 +4038,9 @@ "license": "ISC" }, "node_modules/ws": { - "version": "8.18.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.2.tgz", - "integrity": "sha512-DMricUmwGZUVr++AEAe2uiVM7UoO9MAVZMDu05UQOaUII0lp+zOzLLU4Xqh/JvTqklB1T4uELaaPBKyjE1r4fQ==", - "license": "MIT", + "version": "8.18.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz", + "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", "engines": { "node": ">=10.0.0" }, From 382a5cbb3de45416eeb095eff94f5738b324597f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jun 2025 03:27:28 +0000 Subject: [PATCH 012/143] build(deps-dev): bump typedoc from 0.28.5 to 0.28.7 Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.28.5 to 0.28.7. - [Release notes](https://github.com/TypeStrong/TypeDoc/releases) - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md) - [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.28.5...v0.28.7) --- updated-dependencies: - dependency-name: typedoc dependency-version: 0.28.7 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 76 ++++++++++++++++++++--------------------------- 1 file changed, 33 insertions(+), 43 deletions(-) diff --git a/package-lock.json b/package-lock.json index b9c7f483c8..b9fc2c4ac7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -669,16 +669,15 @@ } }, "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==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-3.7.0.tgz", + "integrity": "sha512-7iY9wg4FWXmeoFJpUL2u+tsmh0d0jcEJHAIzVxl3TG4KL493JNnisdLAILZ77zcD+z3J0keEXZ+lFzUgzQzPDg==", "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/engine-oniguruma": "^3.7.0", + "@shikijs/langs": "^3.7.0", + "@shikijs/themes": "^3.7.0", + "@shikijs/types": "^3.7.0", "@shikijs/vscode-textmate": "^10.0.2" } }, @@ -934,42 +933,38 @@ } }, "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==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.7.0.tgz", + "integrity": "sha512-5BxcD6LjVWsGu4xyaBC5bu8LdNgPCVBnAkWTtOCs/CZxcB22L8rcoWfv7Hh/3WooVjBZmFtyxhgvkQFedPGnFw==", "dev": true, - "license": "MIT", "dependencies": { - "@shikijs/types": "3.2.1", + "@shikijs/types": "3.7.0", "@shikijs/vscode-textmate": "^10.0.2" } }, "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==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.7.0.tgz", + "integrity": "sha512-1zYtdfXLr9xDKLTGy5kb7O0zDQsxXiIsw1iIBcNOO8Yi5/Y1qDbJ+0VsFoqTlzdmneO8Ij35g7QKF8kcLyznCQ==", "dev": true, - "license": "MIT", "dependencies": { - "@shikijs/types": "3.2.1" + "@shikijs/types": "3.7.0" } }, "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==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.7.0.tgz", + "integrity": "sha512-VJx8497iZPy5zLiiCTSIaOChIcKQwR0FebwE9S3rcN0+J/GTWwQ1v/bqhTbpbY3zybPKeO8wdammqkpXc4NVjQ==", "dev": true, - "license": "MIT", "dependencies": { - "@shikijs/types": "3.2.1" + "@shikijs/types": "3.7.0" } }, "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==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.7.0.tgz", + "integrity": "sha512-MGaLeaRlSWpnP0XSAum3kP3a8vtcTsITqoEPYdt3lQG3YCdQH4DnEhodkYcNMcU0uW0RffhoD1O3e0vG5eSBBg==", "dev": true, - "license": "MIT", "dependencies": { "@shikijs/vscode-textmate": "^10.0.2", "@types/hast": "^3.0.4" @@ -979,8 +974,7 @@ "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" + "dev": true }, "node_modules/@types/estree": { "version": "1.0.7", @@ -994,7 +988,6 @@ "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": "*" } @@ -1061,8 +1054,7 @@ "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, - "license": "MIT" + "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "8.35.0", @@ -3796,17 +3788,16 @@ } }, "node_modules/typedoc": { - "version": "0.28.5", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.5.tgz", - "integrity": "sha512-5PzUddaA9FbaarUzIsEc4wNXCiO4Ot3bJNeMF2qKpYlTmM9TTaSHQ7162w756ERCkXER/+o2purRG6YOAv6EMA==", + "version": "0.28.7", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.7.tgz", + "integrity": "sha512-lpz0Oxl6aidFkmS90VQDQjk/Qf2iw0IUvFqirdONBdj7jPSN9mGXhy66BcGNDxx5ZMyKKiBVAREvPEzT6Uxipw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@gerrit0/mini-shiki": "^3.2.2", + "@gerrit0/mini-shiki": "^3.7.0", "lunr": "^2.3.9", "markdown-it": "^14.1.0", "minimatch": "^9.0.5", - "yaml": "^2.7.1" + "yaml": "^2.8.0" }, "bin": { "typedoc": "bin/typedoc" @@ -4069,16 +4060,15 @@ } }, "node_modules/yaml": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz", - "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.0.tgz", + "integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==", "dev": true, - "license": "ISC", "bin": { "yaml": "bin.mjs" }, "engines": { - "node": ">= 14" + "node": ">= 14.6" } }, "node_modules/yargs": { From 34b561081b723265cc2e5afefbf1d91c264ddbc9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jun 2025 04:50:16 +0000 Subject: [PATCH 013/143] build(deps-dev): bump prettier from 3.6.1 to 3.6.2 Bumps [prettier](https://github.com/prettier/prettier) from 3.6.1 to 3.6.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.6.1...3.6.2) --- updated-dependencies: - dependency-name: prettier dependency-version: 3.6.2 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index b9c7f483c8..bef02f87ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3207,11 +3207,10 @@ } }, "node_modules/prettier": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.1.tgz", - "integrity": "sha512-5xGWRa90Sp2+x1dQtNpIpeOQpTDBs9cZDmA/qs2vDNN2i18PdapqY7CmBeyLlMuGqXJRIOPaCaVZTLNQRWUH/A==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", + "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", "dev": true, - "license": "MIT", "bin": { "prettier": "bin/prettier.cjs" }, From ad37f4d3eedf6a1fa8e8c1d486dd3fa041d49cf4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Jul 2025 06:38:18 +0000 Subject: [PATCH 014/143] build(deps-dev): bump typescript-eslint from 8.35.0 to 8.35.1 Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.35.0 to 8.35.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.35.1/packages/typescript-eslint) --- updated-dependencies: - dependency-name: typescript-eslint dependency-version: 8.35.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 163 +++++++++++++++++----------------------------- 1 file changed, 61 insertions(+), 102 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0ed8a99d6f..00ec470800 100644 --- a/package-lock.json +++ b/package-lock.json @@ -844,7 +844,6 @@ "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" @@ -858,7 +857,6 @@ "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" } @@ -868,7 +866,6 @@ "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": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -1051,17 +1048,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.35.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.35.0.tgz", - "integrity": "sha512-ijItUYaiWuce0N1SoSMrEd0b6b6lYkYt99pqCPfybd+HKVXtEvYhICfLdwp42MhiI5mp0oq7PKEL+g1cNiz/Eg==", + "version": "8.35.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.35.1.tgz", + "integrity": "sha512-9XNTlo7P7RJxbVeICaIIIEipqxLKguyh+3UbXuT2XQuFp6d8VOeDEGuz5IiX0dgZo8CiI6aOFLg4e8cF71SFVg==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.35.0", - "@typescript-eslint/type-utils": "8.35.0", - "@typescript-eslint/utils": "8.35.0", - "@typescript-eslint/visitor-keys": "8.35.0", + "@typescript-eslint/scope-manager": "8.35.1", + "@typescript-eslint/type-utils": "8.35.1", + "@typescript-eslint/utils": "8.35.1", + "@typescript-eslint/visitor-keys": "8.35.1", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", @@ -1075,7 +1071,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.35.0", + "@typescript-eslint/parser": "^8.35.1", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.9.0" } @@ -1085,22 +1081,20 @@ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 4" } }, "node_modules/@typescript-eslint/parser": { - "version": "8.35.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.35.0.tgz", - "integrity": "sha512-6sMvZePQrnZH2/cJkwRpkT7DxoAWh+g6+GFRK6bV3YQo7ogi3SX5rgF6099r5Q53Ma5qeT7LGmOmuIutF4t3lA==", + "version": "8.35.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.35.1.tgz", + "integrity": "sha512-3MyiDfrfLeK06bi/g9DqJxP5pV74LNv4rFTyvGDmT3x2p1yp1lOd+qYZfiRPIOf/oON+WRZR5wxxuF85qOar+w==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.35.0", - "@typescript-eslint/types": "8.35.0", - "@typescript-eslint/typescript-estree": "8.35.0", - "@typescript-eslint/visitor-keys": "8.35.0", + "@typescript-eslint/scope-manager": "8.35.1", + "@typescript-eslint/types": "8.35.1", + "@typescript-eslint/typescript-estree": "8.35.1", + "@typescript-eslint/visitor-keys": "8.35.1", "debug": "^4.3.4" }, "engines": { @@ -1116,14 +1110,13 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.35.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.35.0.tgz", - "integrity": "sha512-41xatqRwWZuhUMF/aZm2fcUsOFKNcG28xqRSS6ZVr9BVJtGExosLAm5A1OxTjRMagx8nJqva+P5zNIGt8RIgbQ==", + "version": "8.35.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.35.1.tgz", + "integrity": "sha512-VYxn/5LOpVxADAuP3NrnxxHYfzVtQzLKeldIhDhzC8UHaiQvYlXvKuVho1qLduFbJjjy5U5bkGwa3rUGUb1Q6Q==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.35.0", - "@typescript-eslint/types": "^8.35.0", + "@typescript-eslint/tsconfig-utils": "^8.35.1", + "@typescript-eslint/types": "^8.35.1", "debug": "^4.3.4" }, "engines": { @@ -1138,14 +1131,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.35.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.35.0.tgz", - "integrity": "sha512-+AgL5+mcoLxl1vGjwNfiWq5fLDZM1TmTPYs2UkyHfFhgERxBbqHlNjRzhThJqz+ktBqTChRYY6zwbMwy0591AA==", + "version": "8.35.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.35.1.tgz", + "integrity": "sha512-s/Bpd4i7ht2934nG+UoSPlYXd08KYz3bmjLEb7Ye1UVob0d1ENiT3lY8bsCmik4RqfSbPw9xJJHbugpPpP5JUg==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.35.0", - "@typescript-eslint/visitor-keys": "8.35.0" + "@typescript-eslint/types": "8.35.1", + "@typescript-eslint/visitor-keys": "8.35.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1156,11 +1148,10 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.35.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.35.0.tgz", - "integrity": "sha512-04k/7247kZzFraweuEirmvUj+W3bJLI9fX6fbo1Qm2YykuBvEhRTPl8tcxlYO8kZZW+HIXfkZNoasVb8EV4jpA==", + "version": "8.35.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.35.1.tgz", + "integrity": "sha512-K5/U9VmT9dTHoNowWZpz+/TObS3xqC5h0xAIjXPw+MNcKV9qg6eSatEnmeAwkjHijhACH0/N7bkhKvbt1+DXWQ==", "dev": true, - "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -1173,14 +1164,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.35.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.35.0.tgz", - "integrity": "sha512-ceNNttjfmSEoM9PW87bWLDEIaLAyR+E6BoYJQ5PfaDau37UGca9Nyq3lBk8Bw2ad0AKvYabz6wxc7DMTO2jnNA==", + "version": "8.35.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.35.1.tgz", + "integrity": "sha512-HOrUBlfVRz5W2LIKpXzZoy6VTZzMu2n8q9C2V/cFngIC5U1nStJgv0tMV4sZPzdf4wQm9/ToWUFPMN9Vq9VJQQ==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "8.35.0", - "@typescript-eslint/utils": "8.35.0", + "@typescript-eslint/typescript-estree": "8.35.1", + "@typescript-eslint/utils": "8.35.1", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, @@ -1197,11 +1187,10 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.35.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.35.0.tgz", - "integrity": "sha512-0mYH3emanku0vHw2aRLNGqe7EXh9WHEhi7kZzscrMDf6IIRUQ5Jk4wp1QrledE/36KtdZrVfKnE32eZCf/vaVQ==", + "version": "8.35.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.35.1.tgz", + "integrity": "sha512-q/O04vVnKHfrrhNAscndAn1tuQhIkwqnaW+eu5waD5IPts2eX1dgJxgqcPx5BX109/qAz7IG6VrEPTOYKCNfRQ==", "dev": true, - "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -1211,16 +1200,15 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.35.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.35.0.tgz", - "integrity": "sha512-F+BhnaBemgu1Qf8oHrxyw14wq6vbL8xwWKKMwTMwYIRmFFY/1n/9T/jpbobZL8vp7QyEUcC6xGrnAO4ua8Kp7w==", + "version": "8.35.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.35.1.tgz", + "integrity": "sha512-Vvpuvj4tBxIka7cPs6Y1uvM7gJgdF5Uu9F+mBJBPY4MhvjrjWGK4H0lVgLJd/8PWZ23FTqsaJaLEkBCFUk8Y9g==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.35.0", - "@typescript-eslint/tsconfig-utils": "8.35.0", - "@typescript-eslint/types": "8.35.0", - "@typescript-eslint/visitor-keys": "8.35.0", + "@typescript-eslint/project-service": "8.35.1", + "@typescript-eslint/tsconfig-utils": "8.35.1", + "@typescript-eslint/types": "8.35.1", + "@typescript-eslint/visitor-keys": "8.35.1", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1240,16 +1228,15 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.35.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.35.0.tgz", - "integrity": "sha512-nqoMu7WWM7ki5tPgLVsmPM8CkqtoPUG6xXGeefM5t4x3XumOEKMoUZPdi+7F+/EotukN4R9OWdmDxN80fqoZeg==", + "version": "8.35.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.35.1.tgz", + "integrity": "sha512-lhnwatFmOFcazAsUm3ZnZFpXSxiwoa1Lj50HphnDe1Et01NF4+hrdXONSUHIcbVu2eFb1bAf+5yjXkGVkXBKAQ==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.35.0", - "@typescript-eslint/types": "8.35.0", - "@typescript-eslint/typescript-estree": "8.35.0" + "@typescript-eslint/scope-manager": "8.35.1", + "@typescript-eslint/types": "8.35.1", + "@typescript-eslint/typescript-estree": "8.35.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1264,13 +1251,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.35.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.35.0.tgz", - "integrity": "sha512-zTh2+1Y8ZpmeQaQVIc/ZZxsx8UzgKJyNg1PTvjzC7WMhPSVS8bfDX34k1SrwOf016qd5RU3az2UxUNue3IfQ5g==", + "version": "8.35.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.35.1.tgz", + "integrity": "sha512-VRwixir4zBWCSTP/ljEo091lbpypz57PoeAQ9imjG+vbeof9LplljsL1mos4ccG6H9IjfrVGM359RozUnuFhpw==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.35.0", + "@typescript-eslint/types": "8.35.1", "eslint-visitor-keys": "^4.2.1" }, "engines": { @@ -1471,7 +1457,6 @@ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, - "license": "MIT", "dependencies": { "fill-range": "^7.1.1" }, @@ -2003,18 +1988,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/@eslint/js": { - "version": "9.29.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.29.0.tgz", - "integrity": "sha512-3PIF4cBw/y+1u2EazflInpV+lYsSG0aByVIQzAgb1m1MhHFSbqTyNqtBKHgWf/9Ykud+DhILS9EGkmekVhbKoQ==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, "node_modules/eslint/node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -2121,7 +2094,6 @@ "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", @@ -2138,7 +2110,6 @@ "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" }, @@ -2165,7 +2136,6 @@ "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" } @@ -2188,7 +2158,6 @@ "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" }, @@ -2424,8 +2393,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/has-flag": { "version": "4.0.0", @@ -2603,7 +2571,6 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -2894,7 +2861,6 @@ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 8" } @@ -2904,7 +2870,6 @@ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, - "license": "MIT", "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" @@ -3185,7 +3150,6 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.6" }, @@ -3327,8 +3291,7 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "MIT" + ] }, "node_modules/require-directory": { "version": "2.1.1", @@ -3365,7 +3328,6 @@ "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" @@ -3396,7 +3358,6 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "dependencies": { "queue-microtask": "^1.2.2" } @@ -3714,7 +3675,6 @@ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -3829,15 +3789,14 @@ } }, "node_modules/typescript-eslint": { - "version": "8.35.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.35.0.tgz", - "integrity": "sha512-uEnz70b7kBz6eg/j0Czy6K5NivaYopgxRjsnAJ2Fx5oTLo3wefTHIbL7AkQr1+7tJCRVpTs/wiM8JR/11Loq9A==", + "version": "8.35.1", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.35.1.tgz", + "integrity": "sha512-xslJjFzhOmHYQzSB/QTeASAHbjmxOGEP6Coh93TXmUBFQoJ1VU35UHIDmG06Jd6taf3wqqC1ntBnCMeymy5Ovw==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.35.0", - "@typescript-eslint/parser": "8.35.0", - "@typescript-eslint/utils": "8.35.0" + "@typescript-eslint/eslint-plugin": "8.35.1", + "@typescript-eslint/parser": "8.35.1", + "@typescript-eslint/utils": "8.35.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" From d7ce0484259304c7e51903077ac3ae0bb779401f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Jul 2025 07:02:21 +0000 Subject: [PATCH 015/143] build(deps): bump tar-fs from 3.0.10 to 3.1.0 Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 3.0.10 to 3.1.0. - [Commits](https://github.com/mafintosh/tar-fs/compare/v3.0.10...v3.1.0) --- updated-dependencies: - dependency-name: tar-fs dependency-version: 3.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0ed8a99d6f..4dad6a6d73 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2003,18 +2003,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/@eslint/js": { - "version": "9.29.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.29.0.tgz", - "integrity": "sha512-3PIF4cBw/y+1u2EazflInpV+lYsSG0aByVIQzAgb1m1MhHFSbqTyNqtBKHgWf/9Ykud+DhILS9EGkmekVhbKoQ==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, "node_modules/eslint/node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -3654,10 +3642,9 @@ } }, "node_modules/tar-fs": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.10.tgz", - "integrity": "sha512-C1SwlQGNLe/jPNqapK8epDsXME7CAJR5RL3GcE6KWx1d9OUByzoHVcbu1VPI8tevg9H8Alae0AApHHFGzrD5zA==", - "license": "MIT", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.0.tgz", + "integrity": "sha512-5Mty5y/sOF1YWj1J6GiBodjlDc05CUR8PKXrsnFAiSG0xA+GHeWLovaZPYUDXkH/1iKRf2+M5+OrRgzC7O9b7w==", "dependencies": { "pump": "^3.0.0", "tar-stream": "^3.1.5" From 3055a7bbeb8fc2b47aa69d158681dc0dcd8775e9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 2 Jul 2025 03:07:11 +0000 Subject: [PATCH 016/143] build(deps): bump openid-client from 6.6.1 to 6.6.2 Bumps [openid-client](https://github.com/panva/openid-client) from 6.6.1 to 6.6.2. - [Release notes](https://github.com/panva/openid-client/releases) - [Changelog](https://github.com/panva/openid-client/blob/main/CHANGELOG.md) - [Commits](https://github.com/panva/openid-client/compare/v6.6.1...v6.6.2) --- updated-dependencies: - dependency-name: openid-client dependency-version: 6.6.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index f90c427ac1..0f5eb1e68e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2984,10 +2984,9 @@ } }, "node_modules/oauth4webapi": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.5.3.tgz", - "integrity": "sha512-2bnHosmBLAQpXNBLOvaJMyMkr4Yya5ohE5Q9jqyxiN+aa7GFCzvDN1RRRMrp0NkfqRR2MTaQNkcSUCCjILD9oQ==", - "license": "MIT", + "version": "3.5.5", + "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.5.5.tgz", + "integrity": "sha512-1K88D2GiAydGblHo39NBro5TebGXa+7tYoyIbxvqv3+haDDry7CBE1eSYuNbOSsYCCU6y0gdynVZAkm4YPw4hg==", "funding": { "url": "https://github.com/sponsors/panva" } @@ -3002,13 +3001,12 @@ } }, "node_modules/openid-client": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.6.1.tgz", - "integrity": "sha512-GmqoICGMI3IyFFjhvXxad8of4QWk2D0tm4vdJkldGm9nw7J3p1f7LPLWgGeFuKuw8HjDVe8Dd8QLGBe0NFvSSg==", - "license": "MIT", + "version": "6.6.2", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.6.2.tgz", + "integrity": "sha512-Xya5TNMnnZuTM6DbHdB4q0S3ig2NTAELnii/ASie1xDEr8iiB8zZbO871OWBdrw++sd3hW6bqWjgcmSy1RTWHA==", "dependencies": { "jose": "^6.0.11", - "oauth4webapi": "^3.5.3" + "oauth4webapi": "^3.5.4" }, "funding": { "url": "https://github.com/sponsors/panva" From 6f430815ddbdbd76bf72eeae661cd5aa4370e18e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 2 Jul 2025 03:07:37 +0000 Subject: [PATCH 017/143] build(deps-dev): bump eslint from 9.30.0 to 9.30.1 Bumps [eslint](https://github.com/eslint/eslint) from 9.30.0 to 9.30.1. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v9.30.0...v9.30.1) --- updated-dependencies: - dependency-name: eslint dependency-version: 9.30.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index f90c427ac1..6a190175d7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -628,9 +628,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.30.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.30.0.tgz", - "integrity": "sha512-Wzw3wQwPvc9sHM+NjakWTcPx11mbZyiYHuwWa/QfZ7cIRX7WK54PSk7bdyXDaoaopUcMatv1zaQvOAAO8hCdww==", + "version": "9.30.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.30.1.tgz", + "integrity": "sha512-zXhuECFlyep42KZUhWjfvsmXGX39W8K8LFb8AWXM9gSV9dQB+MrJGLKvW6Zw0Ggnbpw0VHTtrhFXYe3Gym18jg==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1880,9 +1880,9 @@ } }, "node_modules/eslint": { - "version": "9.30.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.30.0.tgz", - "integrity": "sha512-iN/SiPxmQu6EVkf+m1qpBxzUhE12YqFLOSySuOyVLJLEF9nzTf+h/1AJYc1JWzCnktggeNrjvQGLngDzXirU6g==", + "version": "9.30.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.30.1.tgz", + "integrity": "sha512-zmxXPNMOXmwm9E0yQLi5uqXHs7uq2UIiqEKo3Gq+3fwo1XrJ+hijAZImyF7hclW3E6oHz43Yk3RP8at6OTKflQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", @@ -1891,7 +1891,7 @@ "@eslint/config-helpers": "^0.3.0", "@eslint/core": "^0.14.0", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.30.0", + "@eslint/js": "9.30.1", "@eslint/plugin-kit": "^0.3.1", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", From 8ba8025cc1ef5a45ac457220fd75523611b32ee9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Jul 2025 03:47:32 +0000 Subject: [PATCH 018/143] build(deps-dev): bump typescript-eslint from 8.35.1 to 8.36.0 Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.35.1 to 8.36.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.36.0/packages/typescript-eslint) --- updated-dependencies: - dependency-name: typescript-eslint dependency-version: 8.36.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 118 +++++++++++++++++++++++----------------------- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/package-lock.json b/package-lock.json index fc65baa841..2747dfa6e9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1048,16 +1048,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.35.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.35.1.tgz", - "integrity": "sha512-9XNTlo7P7RJxbVeICaIIIEipqxLKguyh+3UbXuT2XQuFp6d8VOeDEGuz5IiX0dgZo8CiI6aOFLg4e8cF71SFVg==", + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.36.0.tgz", + "integrity": "sha512-lZNihHUVB6ZZiPBNgOQGSxUASI7UJWhT8nHyUGCnaQ28XFCw98IfrMCG3rUl1uwUWoAvodJQby2KTs79UTcrAg==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.35.1", - "@typescript-eslint/type-utils": "8.35.1", - "@typescript-eslint/utils": "8.35.1", - "@typescript-eslint/visitor-keys": "8.35.1", + "@typescript-eslint/scope-manager": "8.36.0", + "@typescript-eslint/type-utils": "8.36.0", + "@typescript-eslint/utils": "8.36.0", + "@typescript-eslint/visitor-keys": "8.36.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", @@ -1071,7 +1071,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.35.1", + "@typescript-eslint/parser": "^8.36.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.9.0" } @@ -1086,15 +1086,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.35.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.35.1.tgz", - "integrity": "sha512-3MyiDfrfLeK06bi/g9DqJxP5pV74LNv4rFTyvGDmT3x2p1yp1lOd+qYZfiRPIOf/oON+WRZR5wxxuF85qOar+w==", + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.36.0.tgz", + "integrity": "sha512-FuYgkHwZLuPbZjQHzJXrtXreJdFMKl16BFYyRrLxDhWr6Qr7Kbcu2s1Yhu8tsiMXw1S0W1pjfFfYEt+R604s+Q==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "8.35.1", - "@typescript-eslint/types": "8.35.1", - "@typescript-eslint/typescript-estree": "8.35.1", - "@typescript-eslint/visitor-keys": "8.35.1", + "@typescript-eslint/scope-manager": "8.36.0", + "@typescript-eslint/types": "8.36.0", + "@typescript-eslint/typescript-estree": "8.36.0", + "@typescript-eslint/visitor-keys": "8.36.0", "debug": "^4.3.4" }, "engines": { @@ -1110,13 +1110,13 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.35.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.35.1.tgz", - "integrity": "sha512-VYxn/5LOpVxADAuP3NrnxxHYfzVtQzLKeldIhDhzC8UHaiQvYlXvKuVho1qLduFbJjjy5U5bkGwa3rUGUb1Q6Q==", + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.36.0.tgz", + "integrity": "sha512-JAhQFIABkWccQYeLMrHadu/fhpzmSQ1F1KXkpzqiVxA/iYI6UnRt2trqXHt1sYEcw1mxLnB9rKMsOxXPxowN/g==", "dev": true, "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.35.1", - "@typescript-eslint/types": "^8.35.1", + "@typescript-eslint/tsconfig-utils": "^8.36.0", + "@typescript-eslint/types": "^8.36.0", "debug": "^4.3.4" }, "engines": { @@ -1131,13 +1131,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.35.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.35.1.tgz", - "integrity": "sha512-s/Bpd4i7ht2934nG+UoSPlYXd08KYz3bmjLEb7Ye1UVob0d1ENiT3lY8bsCmik4RqfSbPw9xJJHbugpPpP5JUg==", + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.36.0.tgz", + "integrity": "sha512-wCnapIKnDkN62fYtTGv2+RY8FlnBYA3tNm0fm91kc2BjPhV2vIjwwozJ7LToaLAyb1ca8BxrS7vT+Pvvf7RvqA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.35.1", - "@typescript-eslint/visitor-keys": "8.35.1" + "@typescript-eslint/types": "8.36.0", + "@typescript-eslint/visitor-keys": "8.36.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1148,9 +1148,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.35.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.35.1.tgz", - "integrity": "sha512-K5/U9VmT9dTHoNowWZpz+/TObS3xqC5h0xAIjXPw+MNcKV9qg6eSatEnmeAwkjHijhACH0/N7bkhKvbt1+DXWQ==", + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.36.0.tgz", + "integrity": "sha512-Nhh3TIEgN18mNbdXpd5Q8mSCBnrZQeY9V7Ca3dqYvNDStNIGRmJA6dmrIPMJ0kow3C7gcQbpsG2rPzy1Ks/AnA==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1164,13 +1164,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.35.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.35.1.tgz", - "integrity": "sha512-HOrUBlfVRz5W2LIKpXzZoy6VTZzMu2n8q9C2V/cFngIC5U1nStJgv0tMV4sZPzdf4wQm9/ToWUFPMN9Vq9VJQQ==", + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.36.0.tgz", + "integrity": "sha512-5aaGYG8cVDd6cxfk/ynpYzxBRZJk7w/ymto6uiyUFtdCozQIsQWh7M28/6r57Fwkbweng8qAzoMCPwSJfWlmsg==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "8.35.1", - "@typescript-eslint/utils": "8.35.1", + "@typescript-eslint/typescript-estree": "8.36.0", + "@typescript-eslint/utils": "8.36.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, @@ -1187,9 +1187,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.35.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.35.1.tgz", - "integrity": "sha512-q/O04vVnKHfrrhNAscndAn1tuQhIkwqnaW+eu5waD5IPts2eX1dgJxgqcPx5BX109/qAz7IG6VrEPTOYKCNfRQ==", + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.36.0.tgz", + "integrity": "sha512-xGms6l5cTJKQPZOKM75Dl9yBfNdGeLRsIyufewnxT4vZTrjC0ImQT4fj8QmtJK84F58uSh5HVBSANwcfiXxABQ==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1200,15 +1200,15 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.35.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.35.1.tgz", - "integrity": "sha512-Vvpuvj4tBxIka7cPs6Y1uvM7gJgdF5Uu9F+mBJBPY4MhvjrjWGK4H0lVgLJd/8PWZ23FTqsaJaLEkBCFUk8Y9g==", + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.36.0.tgz", + "integrity": "sha512-JaS8bDVrfVJX4av0jLpe4ye0BpAaUW7+tnS4Y4ETa3q7NoZgzYbN9zDQTJ8kPb5fQ4n0hliAt9tA4Pfs2zA2Hg==", "dev": true, "dependencies": { - "@typescript-eslint/project-service": "8.35.1", - "@typescript-eslint/tsconfig-utils": "8.35.1", - "@typescript-eslint/types": "8.35.1", - "@typescript-eslint/visitor-keys": "8.35.1", + "@typescript-eslint/project-service": "8.36.0", + "@typescript-eslint/tsconfig-utils": "8.36.0", + "@typescript-eslint/types": "8.36.0", + "@typescript-eslint/visitor-keys": "8.36.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1228,15 +1228,15 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.35.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.35.1.tgz", - "integrity": "sha512-lhnwatFmOFcazAsUm3ZnZFpXSxiwoa1Lj50HphnDe1Et01NF4+hrdXONSUHIcbVu2eFb1bAf+5yjXkGVkXBKAQ==", + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.36.0.tgz", + "integrity": "sha512-VOqmHu42aEMT+P2qYjylw6zP/3E/HvptRwdn/PZxyV27KhZg2IOszXod4NcXisWzPAGSS4trE/g4moNj6XmH2g==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.35.1", - "@typescript-eslint/types": "8.35.1", - "@typescript-eslint/typescript-estree": "8.35.1" + "@typescript-eslint/scope-manager": "8.36.0", + "@typescript-eslint/types": "8.36.0", + "@typescript-eslint/typescript-estree": "8.36.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1251,12 +1251,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.35.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.35.1.tgz", - "integrity": "sha512-VRwixir4zBWCSTP/ljEo091lbpypz57PoeAQ9imjG+vbeof9LplljsL1mos4ccG6H9IjfrVGM359RozUnuFhpw==", + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.36.0.tgz", + "integrity": "sha512-vZrhV2lRPWDuGoxcmrzRZyxAggPL+qp3WzUrlZD+slFueDiYHxeBa34dUXPuC0RmGKzl4lS5kFJYvKCq9cnNDA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.35.1", + "@typescript-eslint/types": "8.36.0", "eslint-visitor-keys": "^4.2.1" }, "engines": { @@ -3786,14 +3786,14 @@ } }, "node_modules/typescript-eslint": { - "version": "8.35.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.35.1.tgz", - "integrity": "sha512-xslJjFzhOmHYQzSB/QTeASAHbjmxOGEP6Coh93TXmUBFQoJ1VU35UHIDmG06Jd6taf3wqqC1ntBnCMeymy5Ovw==", + "version": "8.36.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.36.0.tgz", + "integrity": "sha512-fTCqxthY+h9QbEgSIBfL9iV6CvKDFuoxg6bHPNpJ9HIUzS+jy2lCEyCmGyZRWEBSaykqcDPf1SJ+BfCI8DRopA==", "dev": true, "dependencies": { - "@typescript-eslint/eslint-plugin": "8.35.1", - "@typescript-eslint/parser": "8.35.1", - "@typescript-eslint/utils": "8.35.1" + "@typescript-eslint/eslint-plugin": "8.36.0", + "@typescript-eslint/parser": "8.36.0", + "@typescript-eslint/utils": "8.36.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" From 6c8e875cdcae1f62f9f95b052ff12e5fa00a5d90 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Jul 2025 09:07:30 -0400 Subject: [PATCH 019/143] build(deps): bump @types/node from 24.0.4 to 24.0.13 (#2553) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.0.4 to 24.0.13. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.0.13 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2747dfa6e9..c59b8201ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1014,9 +1014,9 @@ } }, "node_modules/@types/node": { - "version": "24.0.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.4.tgz", - "integrity": "sha512-ulyqAkrhnuNq9pB76DRBTkcS6YsmDALy6Ua63V8OhrOBgbcYt6IOdzpw5P1+dyRIyMerzLkeYWBeOXPpA9GMAA==", + "version": "24.0.13", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.13.tgz", + "integrity": "sha512-Qm9OYVOFHFYg3wJoTSrz80hoec5Lia/dPp84do3X7dZvLikQvM1YpmvTBEdIr/e+U8HTkFjLHLnl78K/qjf+jQ==", "license": "MIT", "dependencies": { "undici-types": "~7.8.0" From 2f8969ffbf52e2ce529817938e45a350394eef01 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Jul 2025 03:18:07 +0000 Subject: [PATCH 020/143] build(deps-dev): bump @eslint/js from 9.30.1 to 9.31.0 Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.30.1 to 9.31.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/commits/v9.31.0/packages/js) --- updated-dependencies: - dependency-name: "@eslint/js" dependency-version: 9.31.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index c59b8201ab..7e86150b9f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -628,10 +628,11 @@ } }, "node_modules/@eslint/js": { - "version": "9.30.1", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.30.1.tgz", - "integrity": "sha512-zXhuECFlyep42KZUhWjfvsmXGX39W8K8LFb8AWXM9gSV9dQB+MrJGLKvW6Zw0Ggnbpw0VHTtrhFXYe3Gym18jg==", + "version": "9.31.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.31.0.tgz", + "integrity": "sha512-LOm5OVt7D4qiKCqoiPbA7LWmI+tbw1VbTUowBcUMgQSuM6poJufkFkYDcQpo5KfgD39TnNySV26QjOh7VFpSyw==", "dev": true, + "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -1988,6 +1989,19 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint/node_modules/@eslint/js": { + "version": "9.30.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.30.1.tgz", + "integrity": "sha512-zXhuECFlyep42KZUhWjfvsmXGX39W8K8LFb8AWXM9gSV9dQB+MrJGLKvW6Zw0Ggnbpw0VHTtrhFXYe3Gym18jg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, "node_modules/eslint/node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", From b9ae15a4f6f978c53117281ce14f08326fbfbccf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Jul 2025 11:56:03 +0000 Subject: [PATCH 021/143] build(deps-dev): bump eslint from 9.30.1 to 9.31.0 Bumps [eslint](https://github.com/eslint/eslint) from 9.30.1 to 9.31.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v9.30.1...v9.31.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 9.31.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7e86150b9f..ad307300af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1881,18 +1881,19 @@ } }, "node_modules/eslint": { - "version": "9.30.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.30.1.tgz", - "integrity": "sha512-zmxXPNMOXmwm9E0yQLi5uqXHs7uq2UIiqEKo3Gq+3fwo1XrJ+hijAZImyF7hclW3E6oHz43Yk3RP8at6OTKflQ==", + "version": "9.31.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.31.0.tgz", + "integrity": "sha512-QldCVh/ztyKJJZLr4jXNUByx3gR+TDYZCRXEktiZoUR3PGy4qCmSbkxcIle8GEwGpb5JBZazlaJ/CxLidXdEbQ==", "dev": true, + "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.21.0", "@eslint/config-helpers": "^0.3.0", - "@eslint/core": "^0.14.0", + "@eslint/core": "^0.15.0", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.30.1", + "@eslint/js": "9.31.0", "@eslint/plugin-kit": "^0.3.1", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", @@ -1989,17 +1990,17 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/@eslint/js": { - "version": "9.30.1", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.30.1.tgz", - "integrity": "sha512-zXhuECFlyep42KZUhWjfvsmXGX39W8K8LFb8AWXM9gSV9dQB+MrJGLKvW6Zw0Ggnbpw0VHTtrhFXYe3Gym18jg==", + "node_modules/eslint/node_modules/@eslint/core": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.1.tgz", + "integrity": "sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==", "dev": true, - "license": "MIT", + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" } }, "node_modules/eslint/node_modules/brace-expansion": { From 0b91ac122a601fe15d9311b7060bee0fbec61614 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 15 Jul 2025 05:49:15 +0000 Subject: [PATCH 022/143] build(deps-dev): bump typescript-eslint from 8.36.0 to 8.37.0 Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.36.0 to 8.37.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.37.0/packages/typescript-eslint) --- updated-dependencies: - dependency-name: typescript-eslint dependency-version: 8.37.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 135 +++++++++++++++++++++++++--------------------- 1 file changed, 75 insertions(+), 60 deletions(-) diff --git a/package-lock.json b/package-lock.json index ad307300af..0fc5bb1d9d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1049,16 +1049,17 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.36.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.36.0.tgz", - "integrity": "sha512-lZNihHUVB6ZZiPBNgOQGSxUASI7UJWhT8nHyUGCnaQ28XFCw98IfrMCG3rUl1uwUWoAvodJQby2KTs79UTcrAg==", + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.37.0.tgz", + "integrity": "sha512-jsuVWeIkb6ggzB+wPCsR4e6loj+rM72ohW6IBn2C+5NCvfUVY8s33iFPySSVXqtm5Hu29Ne/9bnA0JmyLmgenA==", "dev": true, + "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.36.0", - "@typescript-eslint/type-utils": "8.36.0", - "@typescript-eslint/utils": "8.36.0", - "@typescript-eslint/visitor-keys": "8.36.0", + "@typescript-eslint/scope-manager": "8.37.0", + "@typescript-eslint/type-utils": "8.37.0", + "@typescript-eslint/utils": "8.37.0", + "@typescript-eslint/visitor-keys": "8.37.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", @@ -1072,7 +1073,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.36.0", + "@typescript-eslint/parser": "^8.37.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.9.0" } @@ -1082,20 +1083,22 @@ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 4" } }, "node_modules/@typescript-eslint/parser": { - "version": "8.36.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.36.0.tgz", - "integrity": "sha512-FuYgkHwZLuPbZjQHzJXrtXreJdFMKl16BFYyRrLxDhWr6Qr7Kbcu2s1Yhu8tsiMXw1S0W1pjfFfYEt+R604s+Q==", + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.37.0.tgz", + "integrity": "sha512-kVIaQE9vrN9RLCQMQ3iyRlVJpTiDUY6woHGb30JDkfJErqrQEmtdWH3gV0PBAfGZgQXoqzXOO0T3K6ioApbbAA==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.36.0", - "@typescript-eslint/types": "8.36.0", - "@typescript-eslint/typescript-estree": "8.36.0", - "@typescript-eslint/visitor-keys": "8.36.0", + "@typescript-eslint/scope-manager": "8.37.0", + "@typescript-eslint/types": "8.37.0", + "@typescript-eslint/typescript-estree": "8.37.0", + "@typescript-eslint/visitor-keys": "8.37.0", "debug": "^4.3.4" }, "engines": { @@ -1111,13 +1114,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.36.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.36.0.tgz", - "integrity": "sha512-JAhQFIABkWccQYeLMrHadu/fhpzmSQ1F1KXkpzqiVxA/iYI6UnRt2trqXHt1sYEcw1mxLnB9rKMsOxXPxowN/g==", + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.37.0.tgz", + "integrity": "sha512-BIUXYsbkl5A1aJDdYJCBAo8rCEbAvdquQ8AnLb6z5Lp1u3x5PNgSSx9A/zqYc++Xnr/0DVpls8iQ2cJs/izTXA==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.36.0", - "@typescript-eslint/types": "^8.36.0", + "@typescript-eslint/tsconfig-utils": "^8.37.0", + "@typescript-eslint/types": "^8.37.0", "debug": "^4.3.4" }, "engines": { @@ -1132,13 +1136,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.36.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.36.0.tgz", - "integrity": "sha512-wCnapIKnDkN62fYtTGv2+RY8FlnBYA3tNm0fm91kc2BjPhV2vIjwwozJ7LToaLAyb1ca8BxrS7vT+Pvvf7RvqA==", + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.37.0.tgz", + "integrity": "sha512-0vGq0yiU1gbjKob2q691ybTg9JX6ShiVXAAfm2jGf3q0hdP6/BruaFjL/ManAR/lj05AvYCH+5bbVo0VtzmjOA==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.36.0", - "@typescript-eslint/visitor-keys": "8.36.0" + "@typescript-eslint/types": "8.37.0", + "@typescript-eslint/visitor-keys": "8.37.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1149,10 +1154,11 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.36.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.36.0.tgz", - "integrity": "sha512-Nhh3TIEgN18mNbdXpd5Q8mSCBnrZQeY9V7Ca3dqYvNDStNIGRmJA6dmrIPMJ0kow3C7gcQbpsG2rPzy1Ks/AnA==", + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.37.0.tgz", + "integrity": "sha512-1/YHvAVTimMM9mmlPvTec9NP4bobA1RkDbMydxG8omqwJJLEW/Iy2C4adsAESIXU3WGLXFHSZUU+C9EoFWl4Zg==", "dev": true, + "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -1165,13 +1171,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.36.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.36.0.tgz", - "integrity": "sha512-5aaGYG8cVDd6cxfk/ynpYzxBRZJk7w/ymto6uiyUFtdCozQIsQWh7M28/6r57Fwkbweng8qAzoMCPwSJfWlmsg==", + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.37.0.tgz", + "integrity": "sha512-SPkXWIkVZxhgwSwVq9rqj/4VFo7MnWwVaRNznfQDc/xPYHjXnPfLWn+4L6FF1cAz6e7dsqBeMawgl7QjUMj4Ow==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "8.36.0", - "@typescript-eslint/utils": "8.36.0", + "@typescript-eslint/types": "8.37.0", + "@typescript-eslint/typescript-estree": "8.37.0", + "@typescript-eslint/utils": "8.37.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, @@ -1188,10 +1196,11 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.36.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.36.0.tgz", - "integrity": "sha512-xGms6l5cTJKQPZOKM75Dl9yBfNdGeLRsIyufewnxT4vZTrjC0ImQT4fj8QmtJK84F58uSh5HVBSANwcfiXxABQ==", + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.37.0.tgz", + "integrity": "sha512-ax0nv7PUF9NOVPs+lmQ7yIE7IQmAf8LGcXbMvHX5Gm+YJUYNAl340XkGnrimxZ0elXyoQJuN5sbg6C4evKA4SQ==", "dev": true, + "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -1201,15 +1210,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.36.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.36.0.tgz", - "integrity": "sha512-JaS8bDVrfVJX4av0jLpe4ye0BpAaUW7+tnS4Y4ETa3q7NoZgzYbN9zDQTJ8kPb5fQ4n0hliAt9tA4Pfs2zA2Hg==", + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.37.0.tgz", + "integrity": "sha512-zuWDMDuzMRbQOM+bHyU4/slw27bAUEcKSKKs3hcv2aNnc/tvE/h7w60dwVw8vnal2Pub6RT1T7BI8tFZ1fE+yg==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.36.0", - "@typescript-eslint/tsconfig-utils": "8.36.0", - "@typescript-eslint/types": "8.36.0", - "@typescript-eslint/visitor-keys": "8.36.0", + "@typescript-eslint/project-service": "8.37.0", + "@typescript-eslint/tsconfig-utils": "8.37.0", + "@typescript-eslint/types": "8.37.0", + "@typescript-eslint/visitor-keys": "8.37.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1229,15 +1239,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.36.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.36.0.tgz", - "integrity": "sha512-VOqmHu42aEMT+P2qYjylw6zP/3E/HvptRwdn/PZxyV27KhZg2IOszXod4NcXisWzPAGSS4trE/g4moNj6XmH2g==", + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.37.0.tgz", + "integrity": "sha512-TSFvkIW6gGjN2p6zbXo20FzCABbyUAuq6tBvNRGsKdsSQ6a7rnV6ADfZ7f4iI3lIiXc4F4WWvtUfDw9CJ9pO5A==", "dev": true, + "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.36.0", - "@typescript-eslint/types": "8.36.0", - "@typescript-eslint/typescript-estree": "8.36.0" + "@typescript-eslint/scope-manager": "8.37.0", + "@typescript-eslint/types": "8.37.0", + "@typescript-eslint/typescript-estree": "8.37.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1252,12 +1263,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.36.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.36.0.tgz", - "integrity": "sha512-vZrhV2lRPWDuGoxcmrzRZyxAggPL+qp3WzUrlZD+slFueDiYHxeBa34dUXPuC0RmGKzl4lS5kFJYvKCq9cnNDA==", + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.37.0.tgz", + "integrity": "sha512-YzfhzcTnZVPiLfP/oeKtDp2evwvHLMe0LOy7oe+hb9KKIumLNohYS9Hgp1ifwpu42YWxhZE8yieggz6JpqO/1w==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.36.0", + "@typescript-eslint/types": "8.37.0", "eslint-visitor-keys": "^4.2.1" }, "engines": { @@ -2408,7 +2420,8 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/has-flag": { "version": "4.0.0", @@ -3801,14 +3814,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.36.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.36.0.tgz", - "integrity": "sha512-fTCqxthY+h9QbEgSIBfL9iV6CvKDFuoxg6bHPNpJ9HIUzS+jy2lCEyCmGyZRWEBSaykqcDPf1SJ+BfCI8DRopA==", + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.37.0.tgz", + "integrity": "sha512-TnbEjzkE9EmcO0Q2zM+GE8NQLItNAJpMmED1BdgoBMYNdqMhzlbqfdSwiRlAzEK2pA9UzVW0gzaaIzXWg2BjfA==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.36.0", - "@typescript-eslint/parser": "8.36.0", - "@typescript-eslint/utils": "8.36.0" + "@typescript-eslint/eslint-plugin": "8.37.0", + "@typescript-eslint/parser": "8.37.0", + "@typescript-eslint/typescript-estree": "8.37.0", + "@typescript-eslint/utils": "8.37.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" From 169aec8e0db4903a31342f0aca1425c8d0c153fc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 16 Jul 2025 03:02:13 +0000 Subject: [PATCH 023/143] build(deps): bump @types/node from 24.0.13 to 24.0.14 --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.0.14 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0fc5bb1d9d..93c6d3047e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1015,9 +1015,9 @@ } }, "node_modules/@types/node": { - "version": "24.0.13", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.13.tgz", - "integrity": "sha512-Qm9OYVOFHFYg3wJoTSrz80hoec5Lia/dPp84do3X7dZvLikQvM1YpmvTBEdIr/e+U8HTkFjLHLnl78K/qjf+jQ==", + "version": "24.0.14", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.14.tgz", + "integrity": "sha512-4zXMWD91vBLGRtHK3YbIoFMia+1nqEz72coM42C5ETjnNCa/heoj7NT1G67iAfOqMmcfhuCZ4uNpyz8EjlAejw==", "license": "MIT", "dependencies": { "undici-types": "~7.8.0" From 3f9b510ea5b3b2a2940426753ae829ef7a8e3341 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 18 Jul 2025 02:29:54 +0000 Subject: [PATCH 024/143] build(deps): bump form-data from 4.0.3 to 4.0.4 Bumps [form-data](https://github.com/form-data/form-data) from 4.0.3 to 4.0.4. - [Release notes](https://github.com/form-data/form-data/releases) - [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md) - [Commits](https://github.com/form-data/form-data/compare/v4.0.3...v4.0.4) --- updated-dependencies: - dependency-name: form-data dependency-version: 4.0.4 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 93c6d3047e..72114ccdf8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2248,9 +2248,9 @@ } }, "node_modules/form-data": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.3.tgz", - "integrity": "sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", + "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", "license": "MIT", "dependencies": { "asynckit": "^0.4.0", From 7a1fe06e91519c262b480249cc3f4787db38a558 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Jul 2025 02:48:00 +0000 Subject: [PATCH 025/143] build(deps-dev): bump nock from 14.0.5 to 14.0.6 --- updated-dependencies: - dependency-name: nock dependency-version: 14.0.6 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 72114ccdf8..e54d56f3c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -823,9 +823,9 @@ } }, "node_modules/@mswjs/interceptors": { - "version": "0.38.7", - "resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.38.7.tgz", - "integrity": "sha512-Jkb27iSn7JPdkqlTqKfhncFfnEZsIJVYxsFbUSWEkxdIPdsyngrhoDBk0/BGD2FQcRH99vlRrkHpNTyKqI+0/w==", + "version": "0.39.3", + "resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.39.3.tgz", + "integrity": "sha512-9bw/wBL7pblsnOCIqvn1788S9o4h+cC5HWXg0Xhh0dOzsZ53IyfmBM+FYqpDDPbm0xjCqEqvCITloF3Dm4TXRQ==", "dev": true, "license": "MIT", "dependencies": { @@ -2977,13 +2977,13 @@ "license": "MIT" }, "node_modules/nock": { - "version": "14.0.5", - "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.5.tgz", - "integrity": "sha512-R49fALR9caB6vxuSWUIaK2eBYeTloZQUFBZ4rHO+TbhMGQHtwnhdqKLYki+o+8qMgLvoBYWrp/2KzGPhxL4S6w==", + "version": "14.0.6", + "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.6.tgz", + "integrity": "sha512-67n1OfusL/ON57fwFJ6ZurSJa/msYVQmqlz9rCel2HJYj4Zeb8v9TcmRdEW+PV2i9Fm2358umSvzZukhw/E8DA==", "dev": true, "license": "MIT", "dependencies": { - "@mswjs/interceptors": "^0.38.7", + "@mswjs/interceptors": "^0.39.3", "json-stringify-safe": "^5.0.1", "propagate": "^2.0.0" }, From 70c5a9d8715f7448a7d56517fda94c1d678ae0e3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Jul 2025 02:50:30 +0000 Subject: [PATCH 026/143] build(deps): bump @types/node from 24.0.14 to 24.0.15 --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.0.15 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 72114ccdf8..a05bbc04b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1015,9 +1015,9 @@ } }, "node_modules/@types/node": { - "version": "24.0.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.14.tgz", - "integrity": "sha512-4zXMWD91vBLGRtHK3YbIoFMia+1nqEz72coM42C5ETjnNCa/heoj7NT1G67iAfOqMmcfhuCZ4uNpyz8EjlAejw==", + "version": "24.0.15", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.15.tgz", + "integrity": "sha512-oaeTSbCef7U/z7rDeJA138xpG3NuKc64/rZ2qmUFkFJmnMsAPaluIifqyWd8hSSMxyP9oie3dLAqYPblag9KgA==", "license": "MIT", "dependencies": { "undici-types": "~7.8.0" From 429854a2307505ce92510047da55f38999e8d8b8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 23 Jul 2025 03:13:37 +0000 Subject: [PATCH 027/143] build(deps): bump @types/node from 24.0.15 to 24.1.0 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.0.15 to 24.1.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0c9244bf8a..8caafef999 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1015,9 +1015,9 @@ } }, "node_modules/@types/node": { - "version": "24.0.15", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.15.tgz", - "integrity": "sha512-oaeTSbCef7U/z7rDeJA138xpG3NuKc64/rZ2qmUFkFJmnMsAPaluIifqyWd8hSSMxyP9oie3dLAqYPblag9KgA==", + "version": "24.1.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.1.0.tgz", + "integrity": "sha512-ut5FthK5moxFKH2T1CUOC6ctR67rQRvvHdFLCD2Ql6KXmMuCrjsSsRI9UsLCm9M18BMwClv4pn327UvB7eeO1w==", "license": "MIT", "dependencies": { "undici-types": "~7.8.0" From 8909290f74005e4dbb8c49f49b904dc7c1d52f2d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 23 Jul 2025 03:13:53 +0000 Subject: [PATCH 028/143] build(deps-dev): bump typescript-eslint from 8.37.0 to 8.38.0 Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.37.0 to 8.38.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.38.0/packages/typescript-eslint) --- updated-dependencies: - dependency-name: typescript-eslint dependency-version: 8.38.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 122 +++++++++++++++++++++++----------------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0c9244bf8a..20338d47fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1049,17 +1049,17 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.37.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.37.0.tgz", - "integrity": "sha512-jsuVWeIkb6ggzB+wPCsR4e6loj+rM72ohW6IBn2C+5NCvfUVY8s33iFPySSVXqtm5Hu29Ne/9bnA0JmyLmgenA==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.38.0.tgz", + "integrity": "sha512-CPoznzpuAnIOl4nhj4tRr4gIPj5AfKgkiJmGQDaq+fQnRJTYlcBjbX3wbciGmpoPf8DREufuPRe1tNMZnGdanA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.37.0", - "@typescript-eslint/type-utils": "8.37.0", - "@typescript-eslint/utils": "8.37.0", - "@typescript-eslint/visitor-keys": "8.37.0", + "@typescript-eslint/scope-manager": "8.38.0", + "@typescript-eslint/type-utils": "8.38.0", + "@typescript-eslint/utils": "8.38.0", + "@typescript-eslint/visitor-keys": "8.38.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", @@ -1073,7 +1073,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.37.0", + "@typescript-eslint/parser": "^8.38.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.9.0" } @@ -1089,16 +1089,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.37.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.37.0.tgz", - "integrity": "sha512-kVIaQE9vrN9RLCQMQ3iyRlVJpTiDUY6woHGb30JDkfJErqrQEmtdWH3gV0PBAfGZgQXoqzXOO0T3K6ioApbbAA==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.38.0.tgz", + "integrity": "sha512-Zhy8HCvBUEfBECzIl1PKqF4p11+d0aUJS1GeUiuqK9WmOug8YCmC4h4bjyBvMyAMI9sbRczmrYL5lKg/YMbrcQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.37.0", - "@typescript-eslint/types": "8.37.0", - "@typescript-eslint/typescript-estree": "8.37.0", - "@typescript-eslint/visitor-keys": "8.37.0", + "@typescript-eslint/scope-manager": "8.38.0", + "@typescript-eslint/types": "8.38.0", + "@typescript-eslint/typescript-estree": "8.38.0", + "@typescript-eslint/visitor-keys": "8.38.0", "debug": "^4.3.4" }, "engines": { @@ -1114,14 +1114,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.37.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.37.0.tgz", - "integrity": "sha512-BIUXYsbkl5A1aJDdYJCBAo8rCEbAvdquQ8AnLb6z5Lp1u3x5PNgSSx9A/zqYc++Xnr/0DVpls8iQ2cJs/izTXA==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.38.0.tgz", + "integrity": "sha512-dbK7Jvqcb8c9QfH01YB6pORpqX1mn5gDZc9n63Ak/+jD67oWXn3Gs0M6vddAN+eDXBCS5EmNWzbSxsn9SzFWWg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.37.0", - "@typescript-eslint/types": "^8.37.0", + "@typescript-eslint/tsconfig-utils": "^8.38.0", + "@typescript-eslint/types": "^8.38.0", "debug": "^4.3.4" }, "engines": { @@ -1136,14 +1136,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.37.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.37.0.tgz", - "integrity": "sha512-0vGq0yiU1gbjKob2q691ybTg9JX6ShiVXAAfm2jGf3q0hdP6/BruaFjL/ManAR/lj05AvYCH+5bbVo0VtzmjOA==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.38.0.tgz", + "integrity": "sha512-WJw3AVlFFcdT9Ri1xs/lg8LwDqgekWXWhH3iAF+1ZM+QPd7oxQ6jvtW/JPwzAScxitILUIFs0/AnQ/UWHzbATQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.37.0", - "@typescript-eslint/visitor-keys": "8.37.0" + "@typescript-eslint/types": "8.38.0", + "@typescript-eslint/visitor-keys": "8.38.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1154,9 +1154,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.37.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.37.0.tgz", - "integrity": "sha512-1/YHvAVTimMM9mmlPvTec9NP4bobA1RkDbMydxG8omqwJJLEW/Iy2C4adsAESIXU3WGLXFHSZUU+C9EoFWl4Zg==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.38.0.tgz", + "integrity": "sha512-Lum9RtSE3EroKk/bYns+sPOodqb2Fv50XOl/gMviMKNvanETUuUcC9ObRbzrJ4VSd2JalPqgSAavwrPiPvnAiQ==", "dev": true, "license": "MIT", "engines": { @@ -1171,15 +1171,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.37.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.37.0.tgz", - "integrity": "sha512-SPkXWIkVZxhgwSwVq9rqj/4VFo7MnWwVaRNznfQDc/xPYHjXnPfLWn+4L6FF1cAz6e7dsqBeMawgl7QjUMj4Ow==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.38.0.tgz", + "integrity": "sha512-c7jAvGEZVf0ao2z+nnz8BUaHZD09Agbh+DY7qvBQqLiz8uJzRgVPj5YvOh8I8uEiH8oIUGIfHzMwUcGVco/SJg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.37.0", - "@typescript-eslint/typescript-estree": "8.37.0", - "@typescript-eslint/utils": "8.37.0", + "@typescript-eslint/types": "8.38.0", + "@typescript-eslint/typescript-estree": "8.38.0", + "@typescript-eslint/utils": "8.38.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, @@ -1196,9 +1196,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.37.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.37.0.tgz", - "integrity": "sha512-ax0nv7PUF9NOVPs+lmQ7yIE7IQmAf8LGcXbMvHX5Gm+YJUYNAl340XkGnrimxZ0elXyoQJuN5sbg6C4evKA4SQ==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.38.0.tgz", + "integrity": "sha512-wzkUfX3plUqij4YwWaJyqhiPE5UCRVlFpKn1oCRn2O1bJ592XxWJj8ROQ3JD5MYXLORW84063z3tZTb/cs4Tyw==", "dev": true, "license": "MIT", "engines": { @@ -1210,16 +1210,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.37.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.37.0.tgz", - "integrity": "sha512-zuWDMDuzMRbQOM+bHyU4/slw27bAUEcKSKKs3hcv2aNnc/tvE/h7w60dwVw8vnal2Pub6RT1T7BI8tFZ1fE+yg==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.38.0.tgz", + "integrity": "sha512-fooELKcAKzxux6fA6pxOflpNS0jc+nOQEEOipXFNjSlBS6fqrJOVY/whSn70SScHrcJ2LDsxWrneFoWYSVfqhQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.37.0", - "@typescript-eslint/tsconfig-utils": "8.37.0", - "@typescript-eslint/types": "8.37.0", - "@typescript-eslint/visitor-keys": "8.37.0", + "@typescript-eslint/project-service": "8.38.0", + "@typescript-eslint/tsconfig-utils": "8.38.0", + "@typescript-eslint/types": "8.38.0", + "@typescript-eslint/visitor-keys": "8.38.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1239,16 +1239,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.37.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.37.0.tgz", - "integrity": "sha512-TSFvkIW6gGjN2p6zbXo20FzCABbyUAuq6tBvNRGsKdsSQ6a7rnV6ADfZ7f4iI3lIiXc4F4WWvtUfDw9CJ9pO5A==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.38.0.tgz", + "integrity": "sha512-hHcMA86Hgt+ijJlrD8fX0j1j8w4C92zue/8LOPAFioIno+W0+L7KqE8QZKCcPGc/92Vs9x36w/4MPTJhqXdyvg==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.37.0", - "@typescript-eslint/types": "8.37.0", - "@typescript-eslint/typescript-estree": "8.37.0" + "@typescript-eslint/scope-manager": "8.38.0", + "@typescript-eslint/types": "8.38.0", + "@typescript-eslint/typescript-estree": "8.38.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1263,13 +1263,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.37.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.37.0.tgz", - "integrity": "sha512-YzfhzcTnZVPiLfP/oeKtDp2evwvHLMe0LOy7oe+hb9KKIumLNohYS9Hgp1ifwpu42YWxhZE8yieggz6JpqO/1w==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.38.0.tgz", + "integrity": "sha512-pWrTcoFNWuwHlA9CvlfSsGWs14JxfN1TH25zM5L7o0pRLhsoZkDnTsXfQRJBEWJoV5DL0jf+Z+sxiud+K0mq1g==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.37.0", + "@typescript-eslint/types": "8.38.0", "eslint-visitor-keys": "^4.2.1" }, "engines": { @@ -3814,16 +3814,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.37.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.37.0.tgz", - "integrity": "sha512-TnbEjzkE9EmcO0Q2zM+GE8NQLItNAJpMmED1BdgoBMYNdqMhzlbqfdSwiRlAzEK2pA9UzVW0gzaaIzXWg2BjfA==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.38.0.tgz", + "integrity": "sha512-FsZlrYK6bPDGoLeZRuvx2v6qrM03I0U0SnfCLPs/XCCPCFD80xU9Pg09H/K+XFa68uJuZo7l/Xhs+eDRg2l3hg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.37.0", - "@typescript-eslint/parser": "8.37.0", - "@typescript-eslint/typescript-estree": "8.37.0", - "@typescript-eslint/utils": "8.37.0" + "@typescript-eslint/eslint-plugin": "8.38.0", + "@typescript-eslint/parser": "8.38.0", + "@typescript-eslint/typescript-estree": "8.38.0", + "@typescript-eslint/utils": "8.38.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" From 9108f3d003511206fed0706505235c3caec0dfec Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 03:24:32 +0000 Subject: [PATCH 029/143] build(deps-dev): bump nock from 14.0.6 to 14.0.7 Bumps [nock](https://github.com/nock/nock) from 14.0.6 to 14.0.7. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v14.0.6...v14.0.7) --- updated-dependencies: - dependency-name: nock dependency-version: 14.0.7 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index febeae31c2..e65242a497 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2977,9 +2977,9 @@ "license": "MIT" }, "node_modules/nock": { - "version": "14.0.6", - "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.6.tgz", - "integrity": "sha512-67n1OfusL/ON57fwFJ6ZurSJa/msYVQmqlz9rCel2HJYj4Zeb8v9TcmRdEW+PV2i9Fm2358umSvzZukhw/E8DA==", + "version": "14.0.7", + "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.7.tgz", + "integrity": "sha512-ubwvvhSzNPqc7Nm3a/iYolwqb7lo1zfllDKO1ODsYu3KnarmQEya5yV70ZUwhVxYIl1ePuX3W+lHw2un+pUfpQ==", "dev": true, "license": "MIT", "dependencies": { From 1e5c769b0822265aed0d2b13d2ac152a4b2781df Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 03:24:44 +0000 Subject: [PATCH 030/143] build(deps-dev): bump eslint from 9.31.0 to 9.32.0 Bumps [eslint](https://github.com/eslint/eslint) from 9.31.0 to 9.32.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v9.31.0...v9.32.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 9.32.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 43 +++++++++++++++---------------------------- 1 file changed, 15 insertions(+), 28 deletions(-) diff --git a/package-lock.json b/package-lock.json index febeae31c2..9b7042589b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -567,9 +567,9 @@ } }, "node_modules/@eslint/core": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.14.0.tgz", - "integrity": "sha512-qIbV0/JZr7iSDjqAc60IqbLdsj9GDt16xQtWD+B78d/HAlvysGdZZ6rpJHGAc2T0FQx1X6thsSPdnoiGKdNtdg==", + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.1.tgz", + "integrity": "sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -628,9 +628,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.31.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.31.0.tgz", - "integrity": "sha512-LOm5OVt7D4qiKCqoiPbA7LWmI+tbw1VbTUowBcUMgQSuM6poJufkFkYDcQpo5KfgD39TnNySV26QjOh7VFpSyw==", + "version": "9.32.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.32.0.tgz", + "integrity": "sha512-BBpRFZK3eX6uMLKz8WxFOBIFFcGFJ/g8XuwjTHCqHROSIsopI+ddn/d5Cfh36+7+e5edVS8dbSHnBNhrLEX0zg==", "dev": true, "license": "MIT", "engines": { @@ -650,13 +650,13 @@ } }, "node_modules/@eslint/plugin-kit": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.1.tgz", - "integrity": "sha512-0J+zgWxHN+xXONWIyPWKFMgVuJoZuGiIFu8yxk7RJjxkzpGmyja5wRFqZIVtjDVOQpV+Rw0iOAjYPE2eQyjr0w==", + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.4.tgz", + "integrity": "sha512-Ul5l+lHEcw3L5+k8POx6r74mxEYKG5kOb6Xpy2gCRW6zweT6TEhAf8vhxGgjhqrd/VO/Dirhsb+1hNpD1ue9hw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@eslint/core": "^0.14.0", + "@eslint/core": "^0.15.1", "levn": "^0.4.1" }, "engines": { @@ -1893,9 +1893,9 @@ } }, "node_modules/eslint": { - "version": "9.31.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.31.0.tgz", - "integrity": "sha512-QldCVh/ztyKJJZLr4jXNUByx3gR+TDYZCRXEktiZoUR3PGy4qCmSbkxcIle8GEwGpb5JBZazlaJ/CxLidXdEbQ==", + "version": "9.32.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.32.0.tgz", + "integrity": "sha512-LSehfdpgMeWcTZkWZVIJl+tkZ2nuSkyyB9C27MZqFWXuph7DvaowgcTvKqxvpLW1JZIk8PN7hFY3Rj9LQ7m7lg==", "dev": true, "license": "MIT", "dependencies": { @@ -1905,8 +1905,8 @@ "@eslint/config-helpers": "^0.3.0", "@eslint/core": "^0.15.0", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.31.0", - "@eslint/plugin-kit": "^0.3.1", + "@eslint/js": "9.32.0", + "@eslint/plugin-kit": "^0.3.4", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", @@ -2002,19 +2002,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/@eslint/core": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.1.tgz", - "integrity": "sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, "node_modules/eslint/node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", From 78e38f79a0654fd37d17ca419778764e34e6cecb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 03:34:34 +0000 Subject: [PATCH 031/143] build(deps-dev): bump typedoc from 0.28.7 to 0.28.8 Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.28.7 to 0.28.8. - [Release notes](https://github.com/TypeStrong/TypeDoc/releases) - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md) - [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.28.7...v0.28.8) --- updated-dependencies: - dependency-name: typedoc dependency-version: 0.28.8 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index febeae31c2..903fc334cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3777,10 +3777,11 @@ } }, "node_modules/typedoc": { - "version": "0.28.7", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.7.tgz", - "integrity": "sha512-lpz0Oxl6aidFkmS90VQDQjk/Qf2iw0IUvFqirdONBdj7jPSN9mGXhy66BcGNDxx5ZMyKKiBVAREvPEzT6Uxipw==", + "version": "0.28.8", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.8.tgz", + "integrity": "sha512-16GfLopc8icHfdvqZDqdGBoS2AieIRP2rpf9mU+MgN+gGLyEQvAO0QgOa6NJ5QNmQi0LFrDY9in4F2fUNKgJKA==", "dev": true, + "license": "Apache-2.0", "dependencies": { "@gerrit0/mini-shiki": "^3.7.0", "lunr": "^2.3.9", From 321ab46e3ca0dd0151021318084f99dcabc016cf Mon Sep 17 00:00:00 2001 From: cjihrig Date: Tue, 29 Jul 2025 14:22:57 -0400 Subject: [PATCH 032/143] remove support for v0.x release line This commit disables everything related to the old v0.x release line (the master branch in git). The v0.x git branch and old release artifacts will be left in tact. --- .github/dependabot.yml | 6 ---- .github/workflows/codeql-analysis.yml | 4 +-- .github/workflows/deploy-docs.yml | 50 +++++++++++++-------------- .github/workflows/test.yml | 4 +-- pre-check.sh | 2 +- 5 files changed, 30 insertions(+), 36 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4dbff16643..2ef325edf2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,12 +6,6 @@ updates: 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: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c96cf6f6ef..7cbe4ff05d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,10 +14,10 @@ name: 'CodeQL' on: push: - branches: [master, main] + branches: [main] pull_request: # The branches below must be a subset of the branches above - branches: [master, main] + branches: [main] schedule: - cron: '35 14 * * 3' diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 8037d7caaf..06c93436bd 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,29 +1,29 @@ name: Build and Deploy Docs on: - push: - branches: - - master + push: + branches: + - main jobs: - build-and-deploy-docs: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4.2.2 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - # Pre-check to validate that versions match between package.json - # and package-lock.json. Needs to run before npm install - - name: Validate package.json and package-lock.json versions - run: node version-check.js - - name: Install dependencies - run: npm ci - - name: Build docs - run: npm run docs + build-and-deploy-docs: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.2.2 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + # Pre-check to validate that versions match between package.json + # and package-lock.json. Needs to run before npm install + - name: Validate package.json and package-lock.json versions + run: node version-check.js + - name: Install dependencies + run: npm ci + - name: Build docs + run: npm run docs - - name: Deploy docs - uses: JamesIves/github-pages-deploy-action@v4.7.3 - with: - branch: gh-pages # The branch the action should deploy to. - folder: docs # The folder the action should deploy. + - name: Deploy docs + uses: JamesIves/github-pages-deploy-action@v4.7.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/test.yml b/.github/workflows/test.yml index 140d0911d3..5e9ec92d93 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,9 +2,9 @@ name: Kubernetes Javascript Client - Validation on: push: - branches: [master, main] + branches: [main] pull_request: - branches: [master, main] + branches: [main] jobs: build: diff --git a/pre-check.sh b/pre-check.sh index 5ad811e98e..18b05d8120 100644 --- a/pre-check.sh +++ b/pre-check.sh @@ -8,7 +8,7 @@ if [[ "${branch}" != "main" ]]; then fi if ! git diff --quiet; then - echo "This script must only run on a clean master branch." + echo "This script must only run on a clean main branch." echo git status exit 1 From 0150c38f7a7aec93cb064b3cfd891071bf0705aa Mon Sep 17 00:00:00 2001 From: cjihrig Date: Tue, 29 Jul 2025 16:56:06 -0400 Subject: [PATCH 033/143] address PR feedback --- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7cbe4ff05d..c96cf6f6ef 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,10 +14,10 @@ name: 'CodeQL' on: push: - branches: [main] + branches: [master, main] pull_request: # The branches below must be a subset of the branches above - branches: [main] + branches: [master, main] schedule: - cron: '35 14 * * 3' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5e9ec92d93..140d0911d3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,9 +2,9 @@ name: Kubernetes Javascript Client - Validation on: push: - branches: [main] + branches: [master, main] pull_request: - branches: [main] + branches: [master, main] jobs: build: From 7c8853ec6185ac7695d6495a8f1b4d12ebae2df5 Mon Sep 17 00:00:00 2001 From: Laurent Fallet Date: Wed, 30 Jul 2025 11:30:47 +0200 Subject: [PATCH 034/143] fix: typos in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 71058d9849..c2895b731d 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ k8sApi.createNamespace({ body: namespace }).then( ); ``` -## Create a cluster configuration programatically +## Create a cluster configuration programmatically ```javascript const k8s = require('@kubernetes/client-node'); @@ -112,7 +112,7 @@ release, we will increment the minor version whenever we update the minor Kubern 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. +Generally speaking newer clients will work with older Kubernetes, but compatibility isn't 100% guaranteed. | client version | older versions | 1.28 | 1.29 | 1.30 | 1.31 | 1.32 | 1.33| | -------------- | -------------- | ---- | ---- | ---- | ---- | ---- |----| From a7460c112660e12b220ec5043572a835f2644e1e Mon Sep 17 00:00:00 2001 From: Simon Staszkiewicz Date: Wed, 30 Jul 2025 11:40:17 -0700 Subject: [PATCH 035/143] Update exec_auth.ts --- src/exec_auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exec_auth.ts b/src/exec_auth.ts index fbd97a26f8..c9d3d23d85 100644 --- a/src/exec_auth.ts +++ b/src/exec_auth.ts @@ -95,7 +95,7 @@ export class ExecAuth implements Authenticator { } let opts = {}; if (exec.env) { - const env = process.env; + const env = { ...process.env }; exec.env.forEach((elt) => (env[elt.name] = elt.value)); opts = { ...opts, env }; } From bd14efc49490a7196aed163043967aac5a29f4eb Mon Sep 17 00:00:00 2001 From: Simon Staszkiewicz Date: Wed, 30 Jul 2025 11:56:35 -0700 Subject: [PATCH 036/143] add regression test for exec_auth change --- src/exec_auth_test.ts | 59 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/src/exec_auth_test.ts b/src/exec_auth_test.ts index e323b5880e..7577d87cd8 100644 --- a/src/exec_auth_test.ts +++ b/src/exec_auth_test.ts @@ -538,4 +538,63 @@ describe('ExecAuth', () => { const promise = auth.applyAuthentication(user, opts); await rejects(promise, { name: 'SyntaxError' }); }); + + it('should not overwrite environment variables in process.env', async () => { + // TODO: fix this test for Windows + if (process.platform === 'win32') { + return; + } + const auth = new ExecAuth(); + let optsOut: child_process.SpawnOptions | undefined = {}; + (auth as any).execFn = ( + command: string, + args?: readonly string[], + options?: child_process.SpawnOptionsWithoutStdio, + ): child_process.ChildProcessWithoutNullStreams => { + optsOut = options; + return { + stdout: { + setEncoding: () => {}, + on: (_data: string, f: (data: Buffer | string) => void) => { + f(Buffer.from(JSON.stringify({ status: { token: 'foo' } }))); + }, + }, + stderr: { + setEncoding: () => {}, + on: () => {}, + }, + on: (op: string, f: any) => { + if (op === 'close') { + f(0); + } + }, + } as unknown as child_process.ChildProcessWithoutNullStreams; + }; + + process.env.DO_NO_OVERWRITE_ME = 'important'; + const opts = {} as https.RequestOptions; + opts.headers = {} as OutgoingHttpHeaders; + + await auth.applyAuthentication( + { + name: 'user', + authProvider: { + config: { + exec: { + command: 'echo', + env: [ + { + name: 'DO_NO_OVERWRITE_ME', + value: 'in exec', + }, + ], + }, + }, + }, + }, + opts, + ); + strictEqual(optsOut.env!.DO_NO_OVERWRITE_ME, 'in exec'); + strictEqual(process.env.DO_NO_OVERWRITE_ME, 'important'); + }); }); From 9e5c7c373ad599d4e9709feb23d01a2ba55509c4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Aug 2025 03:33:57 +0000 Subject: [PATCH 037/143] build(deps-dev): bump typedoc from 0.28.8 to 0.28.9 Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.28.8 to 0.28.9. - [Release notes](https://github.com/TypeStrong/TypeDoc/releases) - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md) - [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.28.8...v0.28.9) --- updated-dependencies: - dependency-name: typedoc dependency-version: 0.28.9 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 66 ++++++++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 29 deletions(-) diff --git a/package-lock.json b/package-lock.json index fdf286fcfa..290120bfd9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -664,15 +664,16 @@ } }, "node_modules/@gerrit0/mini-shiki": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-3.7.0.tgz", - "integrity": "sha512-7iY9wg4FWXmeoFJpUL2u+tsmh0d0jcEJHAIzVxl3TG4KL493JNnisdLAILZ77zcD+z3J0keEXZ+lFzUgzQzPDg==", + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-3.9.1.tgz", + "integrity": "sha512-quvtbDhNf528BkMHQQd8xGJMpmA5taDZuex/JDF8ETEjS2iypXzr1hnEUVh+lTUyffFJ0JCxysUsiuUoEGIz/Q==", "dev": true, + "license": "MIT", "dependencies": { - "@shikijs/engine-oniguruma": "^3.7.0", - "@shikijs/langs": "^3.7.0", - "@shikijs/themes": "^3.7.0", - "@shikijs/types": "^3.7.0", + "@shikijs/engine-oniguruma": "^3.9.1", + "@shikijs/langs": "^3.9.1", + "@shikijs/themes": "^3.9.1", + "@shikijs/types": "^3.9.1", "@shikijs/vscode-textmate": "^10.0.2" } }, @@ -925,38 +926,42 @@ } }, "node_modules/@shikijs/engine-oniguruma": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.7.0.tgz", - "integrity": "sha512-5BxcD6LjVWsGu4xyaBC5bu8LdNgPCVBnAkWTtOCs/CZxcB22L8rcoWfv7Hh/3WooVjBZmFtyxhgvkQFedPGnFw==", + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.9.1.tgz", + "integrity": "sha512-WPlL/xqviwS3te4unSGGGfflKsuHLMI6tPdNYvgz/IygcBT6UiwDFSzjBKyebwi5GGSlXsjjdoJLIBnAplmEZw==", "dev": true, + "license": "MIT", "dependencies": { - "@shikijs/types": "3.7.0", + "@shikijs/types": "3.9.1", "@shikijs/vscode-textmate": "^10.0.2" } }, "node_modules/@shikijs/langs": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.7.0.tgz", - "integrity": "sha512-1zYtdfXLr9xDKLTGy5kb7O0zDQsxXiIsw1iIBcNOO8Yi5/Y1qDbJ+0VsFoqTlzdmneO8Ij35g7QKF8kcLyznCQ==", + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.9.1.tgz", + "integrity": "sha512-Vyy2Yv9PP3Veh3VSsIvNncOR+O93wFsNYgN2B6cCCJlS7H9SKFYc55edsqernsg8WT/zam1cfB6llJsQWLnVhA==", "dev": true, + "license": "MIT", "dependencies": { - "@shikijs/types": "3.7.0" + "@shikijs/types": "3.9.1" } }, "node_modules/@shikijs/themes": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.7.0.tgz", - "integrity": "sha512-VJx8497iZPy5zLiiCTSIaOChIcKQwR0FebwE9S3rcN0+J/GTWwQ1v/bqhTbpbY3zybPKeO8wdammqkpXc4NVjQ==", + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.9.1.tgz", + "integrity": "sha512-zAykkGECNICCMXpKeVvq04yqwaSuAIvrf8MjsU5bzskfg4XreU+O0B5wdNCYRixoB9snd3YlZ373WV5E/g5T9A==", "dev": true, + "license": "MIT", "dependencies": { - "@shikijs/types": "3.7.0" + "@shikijs/types": "3.9.1" } }, "node_modules/@shikijs/types": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.7.0.tgz", - "integrity": "sha512-MGaLeaRlSWpnP0XSAum3kP3a8vtcTsITqoEPYdt3lQG3YCdQH4DnEhodkYcNMcU0uW0RffhoD1O3e0vG5eSBBg==", + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.9.1.tgz", + "integrity": "sha512-rqM3T7a0iM1oPKz9iaH/cVgNX9Vz1HERcUcXJ94/fulgVdwqfnhXzGxO4bLrAnh/o5CPLy3IcYedogfV+Ns0Qg==", "dev": true, + "license": "MIT", "dependencies": { "@shikijs/vscode-textmate": "^10.0.2", "@types/hast": "^3.0.4" @@ -966,7 +971,8 @@ "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 + "dev": true, + "license": "MIT" }, "node_modules/@types/estree": { "version": "1.0.7", @@ -980,6 +986,7 @@ "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": "*" } @@ -1046,7 +1053,8 @@ "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/@typescript-eslint/eslint-plugin": { "version": "8.38.0", @@ -3764,13 +3772,13 @@ } }, "node_modules/typedoc": { - "version": "0.28.8", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.8.tgz", - "integrity": "sha512-16GfLopc8icHfdvqZDqdGBoS2AieIRP2rpf9mU+MgN+gGLyEQvAO0QgOa6NJ5QNmQi0LFrDY9in4F2fUNKgJKA==", + "version": "0.28.9", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.9.tgz", + "integrity": "sha512-aw45vwtwOl3QkUAmWCnLV9QW1xY+FSX2zzlit4MAfE99wX+Jij4ycnpbAWgBXsRrxmfs9LaYktg/eX5Bpthd3g==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@gerrit0/mini-shiki": "^3.7.0", + "@gerrit0/mini-shiki": "^3.9.0", "lunr": "^2.3.9", "markdown-it": "^14.1.0", "minimatch": "^9.0.5", @@ -3784,7 +3792,7 @@ "pnpm": ">= 10" }, "peerDependencies": { - "typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x" + "typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x || 5.9.x" } }, "node_modules/typescript": { From 53afab54fca0e3f969f7bfa0b7885aca7a7b4049 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Aug 2025 03:37:16 +0000 Subject: [PATCH 038/143] build(deps-dev): bump nock from 14.0.7 to 14.0.8 Bumps [nock](https://github.com/nock/nock) from 14.0.7 to 14.0.8. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v14.0.7...v14.0.8) --- updated-dependencies: - dependency-name: nock dependency-version: 14.0.8 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index fdf286fcfa..446a9b260a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -823,9 +823,9 @@ } }, "node_modules/@mswjs/interceptors": { - "version": "0.39.3", - "resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.39.3.tgz", - "integrity": "sha512-9bw/wBL7pblsnOCIqvn1788S9o4h+cC5HWXg0Xhh0dOzsZ53IyfmBM+FYqpDDPbm0xjCqEqvCITloF3Dm4TXRQ==", + "version": "0.39.5", + "resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.39.5.tgz", + "integrity": "sha512-B9nHSJYtsv79uo7QdkZ/b/WoKm20IkVSmTc/WCKarmDtFwM0dRx2ouEniqwNkzCSLn3fydzKmnMzjtfdOWt3VQ==", "dev": true, "license": "MIT", "dependencies": { @@ -2964,13 +2964,13 @@ "license": "MIT" }, "node_modules/nock": { - "version": "14.0.7", - "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.7.tgz", - "integrity": "sha512-ubwvvhSzNPqc7Nm3a/iYolwqb7lo1zfllDKO1ODsYu3KnarmQEya5yV70ZUwhVxYIl1ePuX3W+lHw2un+pUfpQ==", + "version": "14.0.8", + "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.8.tgz", + "integrity": "sha512-5DCGrkwK1f8kxUvqvzLWb97XuDUY4/t5M3ZcogPfLGvC2wO8wjRQsIDSXj2L6e1J0Dv8xscf9wWSvGnS3OL29Q==", "dev": true, "license": "MIT", "dependencies": { - "@mswjs/interceptors": "^0.39.3", + "@mswjs/interceptors": "^0.39.5", "json-stringify-safe": "^5.0.1", "propagate": "^2.0.0" }, From d57ec4c5d8be65d9cf2b8f951c215142e8c4ebee Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Aug 2025 08:42:02 +0000 Subject: [PATCH 039/143] build(deps-dev): bump typescript-eslint from 8.38.0 to 8.39.0 Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.38.0 to 8.39.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.39.0/packages/typescript-eslint) --- updated-dependencies: - dependency-name: typescript-eslint dependency-version: 8.39.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 138 +++++++++++++++++++++++----------------------- 1 file changed, 69 insertions(+), 69 deletions(-) diff --git a/package-lock.json b/package-lock.json index 20388706eb..d11e3999c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1057,17 +1057,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.38.0.tgz", - "integrity": "sha512-CPoznzpuAnIOl4nhj4tRr4gIPj5AfKgkiJmGQDaq+fQnRJTYlcBjbX3wbciGmpoPf8DREufuPRe1tNMZnGdanA==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.39.0.tgz", + "integrity": "sha512-bhEz6OZeUR+O/6yx9Jk6ohX6H9JSFTaiY0v9/PuKT3oGK0rn0jNplLmyFUGV+a9gfYnVNwGDwS/UkLIuXNb2Rw==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.38.0", - "@typescript-eslint/type-utils": "8.38.0", - "@typescript-eslint/utils": "8.38.0", - "@typescript-eslint/visitor-keys": "8.38.0", + "@typescript-eslint/scope-manager": "8.39.0", + "@typescript-eslint/type-utils": "8.39.0", + "@typescript-eslint/utils": "8.39.0", + "@typescript-eslint/visitor-keys": "8.39.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", @@ -1081,9 +1081,9 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.38.0", + "@typescript-eslint/parser": "^8.39.0", "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { @@ -1097,16 +1097,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.38.0.tgz", - "integrity": "sha512-Zhy8HCvBUEfBECzIl1PKqF4p11+d0aUJS1GeUiuqK9WmOug8YCmC4h4bjyBvMyAMI9sbRczmrYL5lKg/YMbrcQ==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.39.0.tgz", + "integrity": "sha512-g3WpVQHngx0aLXn6kfIYCZxM6rRJlWzEkVpqEFLT3SgEDsp9cpCbxxgwnE504q4H+ruSDh/VGS6nqZIDynP+vg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.38.0", - "@typescript-eslint/types": "8.38.0", - "@typescript-eslint/typescript-estree": "8.38.0", - "@typescript-eslint/visitor-keys": "8.38.0", + "@typescript-eslint/scope-manager": "8.39.0", + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/typescript-estree": "8.39.0", + "@typescript-eslint/visitor-keys": "8.39.0", "debug": "^4.3.4" }, "engines": { @@ -1118,18 +1118,18 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.38.0.tgz", - "integrity": "sha512-dbK7Jvqcb8c9QfH01YB6pORpqX1mn5gDZc9n63Ak/+jD67oWXn3Gs0M6vddAN+eDXBCS5EmNWzbSxsn9SzFWWg==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.39.0.tgz", + "integrity": "sha512-CTzJqaSq30V/Z2Og9jogzZt8lJRR5TKlAdXmWgdu4hgcC9Kww5flQ+xFvMxIBWVNdxJO7OifgdOK4PokMIWPew==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.38.0", - "@typescript-eslint/types": "^8.38.0", + "@typescript-eslint/tsconfig-utils": "^8.39.0", + "@typescript-eslint/types": "^8.39.0", "debug": "^4.3.4" }, "engines": { @@ -1140,18 +1140,18 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.38.0.tgz", - "integrity": "sha512-WJw3AVlFFcdT9Ri1xs/lg8LwDqgekWXWhH3iAF+1ZM+QPd7oxQ6jvtW/JPwzAScxitILUIFs0/AnQ/UWHzbATQ==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.39.0.tgz", + "integrity": "sha512-8QOzff9UKxOh6npZQ/4FQu4mjdOCGSdO3p44ww0hk8Vu+IGbg0tB/H1LcTARRDzGCC8pDGbh2rissBuuoPgH8A==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.38.0", - "@typescript-eslint/visitor-keys": "8.38.0" + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/visitor-keys": "8.39.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1162,9 +1162,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.38.0.tgz", - "integrity": "sha512-Lum9RtSE3EroKk/bYns+sPOodqb2Fv50XOl/gMviMKNvanETUuUcC9ObRbzrJ4VSd2JalPqgSAavwrPiPvnAiQ==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.39.0.tgz", + "integrity": "sha512-Fd3/QjmFV2sKmvv3Mrj8r6N8CryYiCS8Wdb/6/rgOXAWGcFuc+VkQuG28uk/4kVNVZBQuuDHEDUpo/pQ32zsIQ==", "dev": true, "license": "MIT", "engines": { @@ -1175,19 +1175,19 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.38.0.tgz", - "integrity": "sha512-c7jAvGEZVf0ao2z+nnz8BUaHZD09Agbh+DY7qvBQqLiz8uJzRgVPj5YvOh8I8uEiH8oIUGIfHzMwUcGVco/SJg==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.39.0.tgz", + "integrity": "sha512-6B3z0c1DXVT2vYA9+z9axjtc09rqKUPRmijD5m9iv8iQpHBRYRMBcgxSiKTZKm6FwWw1/cI4v6em35OsKCiN5Q==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.38.0", - "@typescript-eslint/typescript-estree": "8.38.0", - "@typescript-eslint/utils": "8.38.0", + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/typescript-estree": "8.39.0", + "@typescript-eslint/utils": "8.39.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, @@ -1200,13 +1200,13 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/types": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.38.0.tgz", - "integrity": "sha512-wzkUfX3plUqij4YwWaJyqhiPE5UCRVlFpKn1oCRn2O1bJ592XxWJj8ROQ3JD5MYXLORW84063z3tZTb/cs4Tyw==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.39.0.tgz", + "integrity": "sha512-ArDdaOllnCj3yn/lzKn9s0pBQYmmyme/v1HbGIGB0GB/knFI3fWMHloC+oYTJW46tVbYnGKTMDK4ah1sC2v0Kg==", "dev": true, "license": "MIT", "engines": { @@ -1218,16 +1218,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.38.0.tgz", - "integrity": "sha512-fooELKcAKzxux6fA6pxOflpNS0jc+nOQEEOipXFNjSlBS6fqrJOVY/whSn70SScHrcJ2LDsxWrneFoWYSVfqhQ==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.39.0.tgz", + "integrity": "sha512-ndWdiflRMvfIgQRpckQQLiB5qAKQ7w++V4LlCHwp62eym1HLB/kw7D9f2e8ytONls/jt89TEasgvb+VwnRprsw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.38.0", - "@typescript-eslint/tsconfig-utils": "8.38.0", - "@typescript-eslint/types": "8.38.0", - "@typescript-eslint/visitor-keys": "8.38.0", + "@typescript-eslint/project-service": "8.39.0", + "@typescript-eslint/tsconfig-utils": "8.39.0", + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/visitor-keys": "8.39.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1243,20 +1243,20 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/utils": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.38.0.tgz", - "integrity": "sha512-hHcMA86Hgt+ijJlrD8fX0j1j8w4C92zue/8LOPAFioIno+W0+L7KqE8QZKCcPGc/92Vs9x36w/4MPTJhqXdyvg==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.39.0.tgz", + "integrity": "sha512-4GVSvNA0Vx1Ktwvf4sFE+exxJ3QGUorQG1/A5mRfRNZtkBT2xrA/BCO2H0eALx/PnvCS6/vmYwRdDA41EoffkQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.38.0", - "@typescript-eslint/types": "8.38.0", - "@typescript-eslint/typescript-estree": "8.38.0" + "@typescript-eslint/scope-manager": "8.39.0", + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/typescript-estree": "8.39.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1267,17 +1267,17 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.38.0.tgz", - "integrity": "sha512-pWrTcoFNWuwHlA9CvlfSsGWs14JxfN1TH25zM5L7o0pRLhsoZkDnTsXfQRJBEWJoV5DL0jf+Z+sxiud+K0mq1g==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.39.0.tgz", + "integrity": "sha512-ldgiJ+VAhQCfIjeOgu8Kj5nSxds0ktPOSO9p4+0VDH2R2pLvQraaM5Oen2d7NxzMCm+Sn/vJT+mv2H5u6b/3fA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.38.0", + "@typescript-eslint/types": "8.39.0", "eslint-visitor-keys": "^4.2.1" }, "engines": { @@ -3810,16 +3810,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.38.0.tgz", - "integrity": "sha512-FsZlrYK6bPDGoLeZRuvx2v6qrM03I0U0SnfCLPs/XCCPCFD80xU9Pg09H/K+XFa68uJuZo7l/Xhs+eDRg2l3hg==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.39.0.tgz", + "integrity": "sha512-lH8FvtdtzcHJCkMOKnN73LIn6SLTpoojgJqDAxPm1jCR14eWSGPX8ul/gggBdPMk/d5+u9V854vTYQ8T5jF/1Q==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.38.0", - "@typescript-eslint/parser": "8.38.0", - "@typescript-eslint/typescript-estree": "8.38.0", - "@typescript-eslint/utils": "8.38.0" + "@typescript-eslint/eslint-plugin": "8.39.0", + "@typescript-eslint/parser": "8.39.0", + "@typescript-eslint/typescript-estree": "8.39.0", + "@typescript-eslint/utils": "8.39.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3830,7 +3830,7 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/uc.micro": { From 876880b9b2b0fecf2d11639bb88e7a6ec83d3294 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Aug 2025 10:04:58 +0000 Subject: [PATCH 040/143] build(deps-dev): bump typescript from 5.8.3 to 5.9.2 Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.8.3 to 5.9.2. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml) - [Commits](https://github.com/microsoft/TypeScript/compare/v5.8.3...v5.9.2) --- updated-dependencies: - dependency-name: typescript dependency-version: 5.9.2 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index d11e3999c2..e16133621a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40,7 +40,7 @@ "ts-mockito": "^2.3.1", "tsx": "^4.19.1", "typedoc": "^0.28.0", - "typescript": "~5.8.2", + "typescript": "~5.9.2", "typescript-eslint": "^8.26.0" } }, @@ -3796,9 +3796,9 @@ } }, "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "version": "5.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/package.json b/package.json index 173117514f..f3251039bc 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "ts-mockito": "^2.3.1", "tsx": "^4.19.1", "typedoc": "^0.28.0", - "typescript": "~5.8.2", + "typescript": "~5.9.2", "typescript-eslint": "^8.26.0" }, "bugs": { From bebf4ee358fec90366b293ee0e06067ae171849c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Aug 2025 11:12:29 +0000 Subject: [PATCH 041/143] build(deps): bump @types/node from 24.1.0 to 24.2.0 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.1.0 to 24.2.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.2.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 20388706eb..eecff0dbee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1022,12 +1022,12 @@ } }, "node_modules/@types/node": { - "version": "24.1.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.1.0.tgz", - "integrity": "sha512-ut5FthK5moxFKH2T1CUOC6ctR67rQRvvHdFLCD2Ql6KXmMuCrjsSsRI9UsLCm9M18BMwClv4pn327UvB7eeO1w==", + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.2.0.tgz", + "integrity": "sha512-3xyG3pMCq3oYCNg7/ZP+E1ooTaGB4cG8JWRsqqOYQdbWNY4zbaV0Ennrd7stjiJEFZCaybcIgpTjJWHRfBSIDw==", "license": "MIT", "dependencies": { - "undici-types": "~7.8.0" + "undici-types": "~7.10.0" } }, "node_modules/@types/node-fetch": { @@ -3841,9 +3841,9 @@ "license": "MIT" }, "node_modules/undici-types": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", - "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", + "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", "license": "MIT" }, "node_modules/uri-js": { From e5dd474a3d8891fd978b566c6733a33d27ff0629 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Aug 2025 02:18:13 +0000 Subject: [PATCH 042/143] build(deps): bump openid-client from 6.6.2 to 6.6.3 Bumps [openid-client](https://github.com/panva/openid-client) from 6.6.2 to 6.6.3. - [Release notes](https://github.com/panva/openid-client/releases) - [Changelog](https://github.com/panva/openid-client/blob/main/CHANGELOG.md) - [Commits](https://github.com/panva/openid-client/compare/v6.6.2...v6.6.3) --- updated-dependencies: - dependency-name: openid-client dependency-version: 6.6.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index ab2cd5b185..3409cbb746 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2670,9 +2670,9 @@ } }, "node_modules/jose": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/jose/-/jose-6.0.11.tgz", - "integrity": "sha512-QxG7EaliDARm1O1S8BGakqncGT9s25bKL1WSf6/oa17Tkqwi8D2ZNglqCF+DsYF88/rV66Q/Q2mFAy697E1DUg==", + "version": "6.0.12", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.0.12.tgz", + "integrity": "sha512-T8xypXs8CpmiIi78k0E+Lk7T2zlK4zDyg+o1CZ4AkOHgDg98ogdP2BeZ61lTFKFyoEwJ9RgAgN+SdM3iPgNonQ==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/panva" @@ -3007,9 +3007,10 @@ } }, "node_modules/oauth4webapi": { - "version": "3.5.5", - "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.5.5.tgz", - "integrity": "sha512-1K88D2GiAydGblHo39NBro5TebGXa+7tYoyIbxvqv3+haDDry7CBE1eSYuNbOSsYCCU6y0gdynVZAkm4YPw4hg==", + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.6.1.tgz", + "integrity": "sha512-b39+drVyA4aNUptFOhkkmGWnG/BE7dT29SW/8PVYElqp7j/DBqzm5SS1G+MUD07XlTcBOAG+6Cb/35Cx2kHIuQ==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/panva" } @@ -3024,12 +3025,13 @@ } }, "node_modules/openid-client": { - "version": "6.6.2", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.6.2.tgz", - "integrity": "sha512-Xya5TNMnnZuTM6DbHdB4q0S3ig2NTAELnii/ASie1xDEr8iiB8zZbO871OWBdrw++sd3hW6bqWjgcmSy1RTWHA==", + "version": "6.6.3", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.6.3.tgz", + "integrity": "sha512-sYYFJsyN21bjf/QepIU/t6w22tEUT+rYVPf1VZOSQwC+s1hAkyZpvAbFNLMrnrYMS/H74MctEHna2jPLvWbkCA==", + "license": "MIT", "dependencies": { - "jose": "^6.0.11", - "oauth4webapi": "^3.5.4" + "jose": "^6.0.12", + "oauth4webapi": "^3.6.1" }, "funding": { "url": "https://github.com/sponsors/panva" From 073249bb67ac85247843e07868f2d720a7529096 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 8 Aug 2025 02:52:01 +0000 Subject: [PATCH 043/143] build(deps-dev): bump nock from 14.0.8 to 14.0.9 Bumps [nock](https://github.com/nock/nock) from 14.0.8 to 14.0.9. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v14.0.8...v14.0.9) --- updated-dependencies: - dependency-name: nock dependency-version: 14.0.9 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3409cbb746..b709186e38 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2972,9 +2972,9 @@ "license": "MIT" }, "node_modules/nock": { - "version": "14.0.8", - "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.8.tgz", - "integrity": "sha512-5DCGrkwK1f8kxUvqvzLWb97XuDUY4/t5M3ZcogPfLGvC2wO8wjRQsIDSXj2L6e1J0Dv8xscf9wWSvGnS3OL29Q==", + "version": "14.0.9", + "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.9.tgz", + "integrity": "sha512-aVIPgW9WVyb3XPCqfrwETc+hazxzgt8/QvARHAhC6BYHtTsZONUjlXoIB8EGmwqUBkKvOew4yqkGRBmwctdCrw==", "dev": true, "license": "MIT", "dependencies": { From 66f8f1716daf7201af9f57800bb71587a04d94f5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 04:01:47 +0000 Subject: [PATCH 044/143] build(deps-dev): bump typedoc from 0.28.9 to 0.28.10 Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.28.9 to 0.28.10. - [Release notes](https://github.com/TypeStrong/TypeDoc/releases) - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md) - [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.28.9...v0.28.10) --- updated-dependencies: - dependency-name: typedoc dependency-version: 0.28.10 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b709186e38..770abf4613 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3774,9 +3774,9 @@ } }, "node_modules/typedoc": { - "version": "0.28.9", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.9.tgz", - "integrity": "sha512-aw45vwtwOl3QkUAmWCnLV9QW1xY+FSX2zzlit4MAfE99wX+Jij4ycnpbAWgBXsRrxmfs9LaYktg/eX5Bpthd3g==", + "version": "0.28.10", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.10.tgz", + "integrity": "sha512-zYvpjS2bNJ30SoNYfHSRaFpBMZAsL7uwKbWwqoCNFWjcPnI3e/mPLh2SneH9mX7SJxtDpvDgvd9/iZxGbo7daw==", "dev": true, "license": "Apache-2.0", "dependencies": { From b66f16d7b5ecd4733c54e12070a356cec03c6a5a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 04:04:13 +0000 Subject: [PATCH 045/143] build(deps): bump @types/node from 24.2.0 to 24.2.1 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.2.0 to 24.2.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.2.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b709186e38..f2055c5db5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1022,9 +1022,9 @@ } }, "node_modules/@types/node": { - "version": "24.2.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.2.0.tgz", - "integrity": "sha512-3xyG3pMCq3oYCNg7/ZP+E1ooTaGB4cG8JWRsqqOYQdbWNY4zbaV0Ennrd7stjiJEFZCaybcIgpTjJWHRfBSIDw==", + "version": "24.2.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.2.1.tgz", + "integrity": "sha512-DRh5K+ka5eJic8CjH7td8QpYEV6Zo10gfRkjHCO3weqZHWDtAaSTFtl4+VMqOJ4N5jcuhZ9/l+yy8rVgw7BQeQ==", "license": "MIT", "dependencies": { "undici-types": "~7.10.0" From b88e2345015c3514f351b2f667d2e89556aa25e0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 04:05:51 +0000 Subject: [PATCH 046/143] build(deps-dev): bump @eslint/js from 9.32.0 to 9.33.0 Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.32.0 to 9.33.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/commits/v9.33.0/packages/js) --- updated-dependencies: - dependency-name: "@eslint/js" dependency-version: 9.33.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b709186e38..1a18089bec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -628,9 +628,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.32.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.32.0.tgz", - "integrity": "sha512-BBpRFZK3eX6uMLKz8WxFOBIFFcGFJ/g8XuwjTHCqHROSIsopI+ddn/d5Cfh36+7+e5edVS8dbSHnBNhrLEX0zg==", + "version": "9.33.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.33.0.tgz", + "integrity": "sha512-5K1/mKhWaMfreBGJTwval43JJmkip0RmM+3+IuqupeSKNC/Th2Kc7ucaq5ovTSra/OOKB9c58CGSz3QMVbWt0A==", "dev": true, "license": "MIT", "engines": { @@ -2010,6 +2010,19 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint/node_modules/@eslint/js": { + "version": "9.32.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.32.0.tgz", + "integrity": "sha512-BBpRFZK3eX6uMLKz8WxFOBIFFcGFJ/g8XuwjTHCqHROSIsopI+ddn/d5Cfh36+7+e5edVS8dbSHnBNhrLEX0zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, "node_modules/eslint/node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", From a43601fd3fbcea4da71179ea97bd0076444d6f8e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 11:29:34 +0000 Subject: [PATCH 047/143] build(deps-dev): bump eslint from 9.32.0 to 9.33.0 Bumps [eslint](https://github.com/eslint/eslint) from 9.32.0 to 9.33.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v9.32.0...v9.33.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 9.33.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 48 ++++++++++++++++++----------------------------- 1 file changed, 18 insertions(+), 30 deletions(-) diff --git a/package-lock.json b/package-lock.json index b154ec3da9..7dbaf8fe84 100644 --- a/package-lock.json +++ b/package-lock.json @@ -558,18 +558,19 @@ } }, "node_modules/@eslint/config-helpers": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.0.tgz", - "integrity": "sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==", + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.1.tgz", + "integrity": "sha512-xR93k9WhrDYpXHORXpxVL5oHj3Era7wo6k/Wd8/IsQNnZUTzkGS29lyn3nAT05v6ltUuTFVCCYDEGfy2Or/sPA==", "dev": true, + "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/core": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.1.tgz", - "integrity": "sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==", + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.2.tgz", + "integrity": "sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -650,13 +651,13 @@ } }, "node_modules/@eslint/plugin-kit": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.4.tgz", - "integrity": "sha512-Ul5l+lHEcw3L5+k8POx6r74mxEYKG5kOb6Xpy2gCRW6zweT6TEhAf8vhxGgjhqrd/VO/Dirhsb+1hNpD1ue9hw==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.5.tgz", + "integrity": "sha512-Z5kJ+wU3oA7MMIqVR9tyZRtjYPr4OC004Q4Rw7pgOKUOKkJfZ3O24nz3WYfGRpMDNmcOi3TwQOmgm7B7Tpii0w==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@eslint/core": "^0.15.1", + "@eslint/core": "^0.15.2", "levn": "^0.4.1" }, "engines": { @@ -1901,20 +1902,20 @@ } }, "node_modules/eslint": { - "version": "9.32.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.32.0.tgz", - "integrity": "sha512-LSehfdpgMeWcTZkWZVIJl+tkZ2nuSkyyB9C27MZqFWXuph7DvaowgcTvKqxvpLW1JZIk8PN7hFY3Rj9LQ7m7lg==", + "version": "9.33.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.33.0.tgz", + "integrity": "sha512-TS9bTNIryDzStCpJN93aC5VRSW3uTx9sClUn4B87pwiCaJh220otoI0X8mJKr+VcPtniMdN8GKjlwgWGUv5ZKA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.21.0", - "@eslint/config-helpers": "^0.3.0", - "@eslint/core": "^0.15.0", + "@eslint/config-helpers": "^0.3.1", + "@eslint/core": "^0.15.2", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.32.0", - "@eslint/plugin-kit": "^0.3.4", + "@eslint/js": "9.33.0", + "@eslint/plugin-kit": "^0.3.5", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", @@ -2010,19 +2011,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/@eslint/js": { - "version": "9.32.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.32.0.tgz", - "integrity": "sha512-BBpRFZK3eX6uMLKz8WxFOBIFFcGFJ/g8XuwjTHCqHROSIsopI+ddn/d5Cfh36+7+e5edVS8dbSHnBNhrLEX0zg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, "node_modules/eslint/node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", From b8505deb9f4c80f3797a9770668c4fec18245890 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Aug 2025 12:24:10 +0000 Subject: [PATCH 048/143] build(deps-dev): bump typescript-eslint from 8.39.0 to 8.39.1 Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.39.0 to 8.39.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.39.1/packages/typescript-eslint) --- updated-dependencies: - dependency-name: typescript-eslint dependency-version: 8.39.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 122 +++++++++++++++++++++++----------------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7dbaf8fe84..ed3aa91882 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1058,17 +1058,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.39.0.tgz", - "integrity": "sha512-bhEz6OZeUR+O/6yx9Jk6ohX6H9JSFTaiY0v9/PuKT3oGK0rn0jNplLmyFUGV+a9gfYnVNwGDwS/UkLIuXNb2Rw==", + "version": "8.39.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.39.1.tgz", + "integrity": "sha512-yYegZ5n3Yr6eOcqgj2nJH8cH/ZZgF+l0YIdKILSDjYFRjgYQMgv/lRjV5Z7Up04b9VYUondt8EPMqg7kTWgJ2g==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.39.0", - "@typescript-eslint/type-utils": "8.39.0", - "@typescript-eslint/utils": "8.39.0", - "@typescript-eslint/visitor-keys": "8.39.0", + "@typescript-eslint/scope-manager": "8.39.1", + "@typescript-eslint/type-utils": "8.39.1", + "@typescript-eslint/utils": "8.39.1", + "@typescript-eslint/visitor-keys": "8.39.1", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", @@ -1082,7 +1082,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.39.0", + "@typescript-eslint/parser": "^8.39.1", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } @@ -1098,16 +1098,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.39.0.tgz", - "integrity": "sha512-g3WpVQHngx0aLXn6kfIYCZxM6rRJlWzEkVpqEFLT3SgEDsp9cpCbxxgwnE504q4H+ruSDh/VGS6nqZIDynP+vg==", + "version": "8.39.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.39.1.tgz", + "integrity": "sha512-pUXGCuHnnKw6PyYq93lLRiZm3vjuslIy7tus1lIQTYVK9bL8XBgJnCWm8a0KcTtHC84Yya1Q6rtll+duSMj0dg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.39.0", - "@typescript-eslint/types": "8.39.0", - "@typescript-eslint/typescript-estree": "8.39.0", - "@typescript-eslint/visitor-keys": "8.39.0", + "@typescript-eslint/scope-manager": "8.39.1", + "@typescript-eslint/types": "8.39.1", + "@typescript-eslint/typescript-estree": "8.39.1", + "@typescript-eslint/visitor-keys": "8.39.1", "debug": "^4.3.4" }, "engines": { @@ -1123,14 +1123,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.39.0.tgz", - "integrity": "sha512-CTzJqaSq30V/Z2Og9jogzZt8lJRR5TKlAdXmWgdu4hgcC9Kww5flQ+xFvMxIBWVNdxJO7OifgdOK4PokMIWPew==", + "version": "8.39.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.39.1.tgz", + "integrity": "sha512-8fZxek3ONTwBu9ptw5nCKqZOSkXshZB7uAxuFF0J/wTMkKydjXCzqqga7MlFMpHi9DoG4BadhmTkITBcg8Aybw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.39.0", - "@typescript-eslint/types": "^8.39.0", + "@typescript-eslint/tsconfig-utils": "^8.39.1", + "@typescript-eslint/types": "^8.39.1", "debug": "^4.3.4" }, "engines": { @@ -1145,14 +1145,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.39.0.tgz", - "integrity": "sha512-8QOzff9UKxOh6npZQ/4FQu4mjdOCGSdO3p44ww0hk8Vu+IGbg0tB/H1LcTARRDzGCC8pDGbh2rissBuuoPgH8A==", + "version": "8.39.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.39.1.tgz", + "integrity": "sha512-RkBKGBrjgskFGWuyUGz/EtD8AF/GW49S21J8dvMzpJitOF1slLEbbHnNEtAHtnDAnx8qDEdRrULRnWVx27wGBw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.39.0", - "@typescript-eslint/visitor-keys": "8.39.0" + "@typescript-eslint/types": "8.39.1", + "@typescript-eslint/visitor-keys": "8.39.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1163,9 +1163,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.39.0.tgz", - "integrity": "sha512-Fd3/QjmFV2sKmvv3Mrj8r6N8CryYiCS8Wdb/6/rgOXAWGcFuc+VkQuG28uk/4kVNVZBQuuDHEDUpo/pQ32zsIQ==", + "version": "8.39.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.39.1.tgz", + "integrity": "sha512-ePUPGVtTMR8XMU2Hee8kD0Pu4NDE1CN9Q1sxGSGd/mbOtGZDM7pnhXNJnzW63zk/q+Z54zVzj44HtwXln5CvHA==", "dev": true, "license": "MIT", "engines": { @@ -1180,15 +1180,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.39.0.tgz", - "integrity": "sha512-6B3z0c1DXVT2vYA9+z9axjtc09rqKUPRmijD5m9iv8iQpHBRYRMBcgxSiKTZKm6FwWw1/cI4v6em35OsKCiN5Q==", + "version": "8.39.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.39.1.tgz", + "integrity": "sha512-gu9/ahyatyAdQbKeHnhT4R+y3YLtqqHyvkfDxaBYk97EcbfChSJXyaJnIL3ygUv7OuZatePHmQvuH5ru0lnVeA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.39.0", - "@typescript-eslint/typescript-estree": "8.39.0", - "@typescript-eslint/utils": "8.39.0", + "@typescript-eslint/types": "8.39.1", + "@typescript-eslint/typescript-estree": "8.39.1", + "@typescript-eslint/utils": "8.39.1", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, @@ -1205,9 +1205,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.39.0.tgz", - "integrity": "sha512-ArDdaOllnCj3yn/lzKn9s0pBQYmmyme/v1HbGIGB0GB/knFI3fWMHloC+oYTJW46tVbYnGKTMDK4ah1sC2v0Kg==", + "version": "8.39.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.39.1.tgz", + "integrity": "sha512-7sPDKQQp+S11laqTrhHqeAbsCfMkwJMrV7oTDvtDds4mEofJYir414bYKUEb8YPUm9QL3U+8f6L6YExSoAGdQw==", "dev": true, "license": "MIT", "engines": { @@ -1219,16 +1219,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.39.0.tgz", - "integrity": "sha512-ndWdiflRMvfIgQRpckQQLiB5qAKQ7w++V4LlCHwp62eym1HLB/kw7D9f2e8ytONls/jt89TEasgvb+VwnRprsw==", + "version": "8.39.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.39.1.tgz", + "integrity": "sha512-EKkpcPuIux48dddVDXyQBlKdeTPMmALqBUbEk38McWv0qVEZwOpVJBi7ugK5qVNgeuYjGNQxrrnoM/5+TI/BPw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.39.0", - "@typescript-eslint/tsconfig-utils": "8.39.0", - "@typescript-eslint/types": "8.39.0", - "@typescript-eslint/visitor-keys": "8.39.0", + "@typescript-eslint/project-service": "8.39.1", + "@typescript-eslint/tsconfig-utils": "8.39.1", + "@typescript-eslint/types": "8.39.1", + "@typescript-eslint/visitor-keys": "8.39.1", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1248,16 +1248,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.39.0.tgz", - "integrity": "sha512-4GVSvNA0Vx1Ktwvf4sFE+exxJ3QGUorQG1/A5mRfRNZtkBT2xrA/BCO2H0eALx/PnvCS6/vmYwRdDA41EoffkQ==", + "version": "8.39.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.39.1.tgz", + "integrity": "sha512-VF5tZ2XnUSTuiqZFXCZfZs1cgkdd3O/sSYmdo2EpSyDlC86UM/8YytTmKnehOW3TGAlivqTDT6bS87B/GQ/jyg==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.39.0", - "@typescript-eslint/types": "8.39.0", - "@typescript-eslint/typescript-estree": "8.39.0" + "@typescript-eslint/scope-manager": "8.39.1", + "@typescript-eslint/types": "8.39.1", + "@typescript-eslint/typescript-estree": "8.39.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1272,13 +1272,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.39.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.39.0.tgz", - "integrity": "sha512-ldgiJ+VAhQCfIjeOgu8Kj5nSxds0ktPOSO9p4+0VDH2R2pLvQraaM5Oen2d7NxzMCm+Sn/vJT+mv2H5u6b/3fA==", + "version": "8.39.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.39.1.tgz", + "integrity": "sha512-W8FQi6kEh2e8zVhQ0eeRnxdvIoOkAp/CPAahcNio6nO9dsIwb9b34z90KOlheoyuVf6LSOEdjlkxSkapNEc+4A==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/types": "8.39.1", "eslint-visitor-keys": "^4.2.1" }, "engines": { @@ -3813,16 +3813,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.39.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.39.0.tgz", - "integrity": "sha512-lH8FvtdtzcHJCkMOKnN73LIn6SLTpoojgJqDAxPm1jCR14eWSGPX8ul/gggBdPMk/d5+u9V854vTYQ8T5jF/1Q==", + "version": "8.39.1", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.39.1.tgz", + "integrity": "sha512-GDUv6/NDYngUlNvwaHM1RamYftxf782IyEDbdj3SeaIHHv8fNQVRC++fITT7kUJV/5rIA/tkoRSSskt6osEfqg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.39.0", - "@typescript-eslint/parser": "8.39.0", - "@typescript-eslint/typescript-estree": "8.39.0", - "@typescript-eslint/utils": "8.39.0" + "@typescript-eslint/eslint-plugin": "8.39.1", + "@typescript-eslint/parser": "8.39.1", + "@typescript-eslint/typescript-estree": "8.39.1", + "@typescript-eslint/utils": "8.39.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" From 3bd129da99630de01bb2bed45fa4e3f0e1fdd8a7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Aug 2025 13:35:41 +0000 Subject: [PATCH 049/143] build(deps): bump actions/checkout from 4.2.2 to 5.0.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.2 to 5.0.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.2.2...v5.0.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/deploy-docs.yml | 2 +- .github/workflows/generate-javascript.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c96cf6f6ef..e2daf7ed29 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,7 +38,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4.2.2 + uses: actions/checkout@v5.0.0 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 06c93436bd..6fd4f0f63b 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4.2.2 + uses: actions/checkout@v5.0.0 - name: Setup Node.js uses: actions/setup-node@v4 with: diff --git a/.github/workflows/generate-javascript.yml b/.github/workflows/generate-javascript.yml index 06de1bfe18..670026eae3 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.2.2 + uses: actions/checkout@v5.0.0 - name: Setup Node uses: actions/setup-node@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 74eee0c6bf..58f77ae599 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: environment: production steps: - name: Checkout Javascript - uses: actions/checkout@v4.2.2 + uses: actions/checkout@v5.0.0 - name: Setup Node uses: actions/setup-node@v4 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 140d0911d3..565dd2a53e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: node: ['24', '23', '22', '20', '18'] name: Node ${{ matrix.node }} validation steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@v5.0.0 - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} From bff11cd1a1b3f6078f68e1ff17d973432321b8bf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Aug 2025 03:16:36 +0000 Subject: [PATCH 050/143] build(deps-dev): bump nock from 14.0.9 to 14.0.10 Bumps [nock](https://github.com/nock/nock) from 14.0.9 to 14.0.10. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v14.0.9...v14.0.10) --- updated-dependencies: - dependency-name: nock dependency-version: 14.0.10 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index ed3aa91882..60de90fbbc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2973,9 +2973,9 @@ "license": "MIT" }, "node_modules/nock": { - "version": "14.0.9", - "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.9.tgz", - "integrity": "sha512-aVIPgW9WVyb3XPCqfrwETc+hazxzgt8/QvARHAhC6BYHtTsZONUjlXoIB8EGmwqUBkKvOew4yqkGRBmwctdCrw==", + "version": "14.0.10", + "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.10.tgz", + "integrity": "sha512-Q7HjkpyPeLa0ZVZC5qpxBt5EyLczFJ91MEewQiIi9taWuA0KB/MDJlUWtON+7dGouVdADTQsf9RA7TZk6D8VMw==", "dev": true, "license": "MIT", "dependencies": { From a5e02efc8fd28dbbe9d99c1aa5c375021f868a81 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Aug 2025 03:42:43 +0000 Subject: [PATCH 051/143] build(deps): bump openid-client from 6.6.3 to 6.6.4 Bumps [openid-client](https://github.com/panva/openid-client) from 6.6.3 to 6.6.4. - [Release notes](https://github.com/panva/openid-client/releases) - [Changelog](https://github.com/panva/openid-client/blob/main/CHANGELOG.md) - [Commits](https://github.com/panva/openid-client/compare/v6.6.3...v6.6.4) --- updated-dependencies: - dependency-name: openid-client dependency-version: 6.6.4 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index ed3aa91882..6656ddf90d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3008,9 +3008,9 @@ } }, "node_modules/oauth4webapi": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.6.1.tgz", - "integrity": "sha512-b39+drVyA4aNUptFOhkkmGWnG/BE7dT29SW/8PVYElqp7j/DBqzm5SS1G+MUD07XlTcBOAG+6Cb/35Cx2kHIuQ==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.7.0.tgz", + "integrity": "sha512-Q52wTPUWPsVLVVmTViXPQFMW2h2xv2jnDGxypjpelCFKaOjLsm7AxYuOk1oQgFm95VNDbuggasu9htXrz6XwKw==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/panva" @@ -3026,13 +3026,13 @@ } }, "node_modules/openid-client": { - "version": "6.6.3", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.6.3.tgz", - "integrity": "sha512-sYYFJsyN21bjf/QepIU/t6w22tEUT+rYVPf1VZOSQwC+s1hAkyZpvAbFNLMrnrYMS/H74MctEHna2jPLvWbkCA==", + "version": "6.6.4", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.6.4.tgz", + "integrity": "sha512-PLWVhRksRnNH05sqeuCX/PR+1J70NyZcAcPske+FeF732KKONd3v0p5Utx1ro1iLfCglH8B3/+dA1vqIHDoIiA==", "license": "MIT", "dependencies": { "jose": "^6.0.12", - "oauth4webapi": "^3.6.1" + "oauth4webapi": "^3.7.0" }, "funding": { "url": "https://github.com/sponsors/panva" From f7fc4d7fa75f316ad74b018798d7035d75453e32 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Aug 2025 03:47:20 +0000 Subject: [PATCH 052/143] build(deps-dev): bump tsx from 4.20.3 to 4.20.4 Bumps [tsx](https://github.com/privatenumber/tsx) from 4.20.3 to 4.20.4. - [Release notes](https://github.com/privatenumber/tsx/releases) - [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs) - [Commits](https://github.com/privatenumber/tsx/compare/v4.20.3...v4.20.4) --- updated-dependencies: - dependency-name: tsx dependency-version: 4.20.4 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index ed3aa91882..134b2befea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3742,9 +3742,9 @@ "license": "0BSD" }, "node_modules/tsx": { - "version": "4.20.3", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.3.tgz", - "integrity": "sha512-qjbnuR9Tr+FJOMBqJCW5ehvIo/buZq7vH7qD7JziU98h6l3qGy0a/yPFjwO+y0/T7GFpNgNAvEcPPVfyT8rrPQ==", + "version": "4.20.4", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.4.tgz", + "integrity": "sha512-yyxBKfORQ7LuRt/BQKBXrpcq59ZvSW0XxwfjAt3w2/8PmdxaFzijtMhTawprSHhpzeM5BgU2hXHG3lklIERZXg==", "dev": true, "license": "MIT", "dependencies": { From 66cc219a89a1865690ea804bc7acaa7f2a10362f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Str=C3=BCbing?= Date: Wed, 13 Aug 2025 08:03:47 +0000 Subject: [PATCH 053/143] chore: update openapi generator commit --- settings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings b/settings index 2f38b8ee97..4954878e7e 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=fc00a663e1688c99d6e8917b6fb222cf83141d4c +export OPENAPI_GENERATOR_COMMIT=3e032bfcfd74b03f33fa5fb3d073286daf5cdbe1 From 65a65dba5d471655b1e29370a67c054f594819cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Str=C3=BCbing?= Date: Wed, 13 Aug 2025 08:04:37 +0000 Subject: [PATCH 054/143] chore: regenerate client --- src/gen/.openapi-generator/COMMIT | 4 +- src/gen/.openapi-generator/VERSION | 2 +- src/gen/apis/exception.ts | 4 +- src/gen/auth/auth.ts | 1 - src/gen/configuration.ts | 83 +- src/gen/http/http.ts | 11 + src/gen/http/isomorphic-fetch.ts | 1 + src/gen/middleware.ts | 6 +- src/gen/models/ObjectSerializer.ts | 9 +- src/gen/types/ObservableAPI.ts | 31358 +++------------------------ src/gen/types/PromiseAPI.ts | 22648 ++----------------- 11 files changed, 5318 insertions(+), 48809 deletions(-) diff --git a/src/gen/.openapi-generator/COMMIT b/src/gen/.openapi-generator/COMMIT index 8e14816441..2e148d692c 100644 --- a/src/gen/.openapi-generator/COMMIT +++ b/src/gen/.openapi-generator/COMMIT @@ -1,2 +1,2 @@ -Requested Commit/Tag : fc00a663e1688c99d6e8917b6fb222cf83141d4c -Actual Commit : fc00a663e1688c99d6e8917b6fb222cf83141d4c +Requested Commit/Tag : 3e032bfcfd74b03f33fa5fb3d073286daf5cdbe1 +Actual Commit : 3e032bfcfd74b03f33fa5fb3d073286daf5cdbe1 diff --git a/src/gen/.openapi-generator/VERSION b/src/gen/.openapi-generator/VERSION index de37f5c4cf..fc74d6ceba 100644 --- a/src/gen/.openapi-generator/VERSION +++ b/src/gen/.openapi-generator/VERSION @@ -1 +1 @@ -7.12.0-SNAPSHOT +7.15.0-SNAPSHOT diff --git a/src/gen/apis/exception.ts b/src/gen/apis/exception.ts index 9365d33a8f..00f294ce45 100644 --- a/src/gen/apis/exception.ts +++ b/src/gen/apis/exception.ts @@ -10,6 +10,6 @@ export class ApiException extends Error { public constructor(public code: number, message: string, public body: T, public headers: { [key: string]: string; }) { super("HTTP-Code: " + code + "\nMessage: " + message + "\nBody: " + JSON.stringify(body) + "\nHeaders: " + - JSON.stringify(headers)) + JSON.stringify(headers)); } -} +} \ No newline at end of file diff --git a/src/gen/auth/auth.ts b/src/gen/auth/auth.ts index 712183b0d5..306fe8c2ee 100644 --- a/src/gen/auth/auth.ts +++ b/src/gen/auth/auth.ts @@ -41,7 +41,6 @@ export class BearerTokenAuthentication implements SecurityAuthentication { } } - export type AuthMethods = { "default"?: SecurityAuthentication, "BearerToken"?: SecurityAuthentication diff --git a/src/gen/configuration.ts b/src/gen/configuration.ts index 6380422be3..61db7ffa47 100644 --- a/src/gen/configuration.ts +++ b/src/gen/configuration.ts @@ -5,16 +5,16 @@ 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: M[]; - readonly authMethods: AuthMethods; + 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'; + // default is `"replace"` for backwards compatibility + middlewareMergeStrategy?: "replace" | "append" | "prepend"; } // Unify configuration options using Partial plus extra merge strategy @@ -29,36 +29,36 @@ export type PromiseConfigurationOptions = ConfigurationOptions new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: options.middlewareMergeStrategy, + authMethods: options.authMethods, + }; + } + return; +} diff --git a/src/gen/http/http.ts b/src/gen/http/http.ts index 04e5e57257..525eee647c 100644 --- a/src/gen/http/http.ts +++ b/src/gen/http/http.ts @@ -3,6 +3,7 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; +import { AbortSignal } from "node-fetch/externals"; import { Observable, from } from '../rxjsStub.js'; export * from './isomorphic-fetch.js'; @@ -57,6 +58,7 @@ export class RequestContext { private headers: Headers = {}; private body: RequestBody = undefined; private url: URL; + private signal: AbortSignal | undefined = undefined; private agent: http.Agent | https.Agent | undefined = undefined; /** @@ -135,6 +137,15 @@ export class RequestContext { this.headers[key] = value; } + public setSignal(signal: AbortSignal): void { + this.signal = signal; + } + + public getSignal(): AbortSignal | undefined { + return this.signal; + } + + public setAgent(agent: http.Agent | https.Agent) { this.agent = agent; } diff --git a/src/gen/http/isomorphic-fetch.ts b/src/gen/http/isomorphic-fetch.ts index d05dc7f9ef..2d3d6179aa 100644 --- a/src/gen/http/isomorphic-fetch.ts +++ b/src/gen/http/isomorphic-fetch.ts @@ -12,6 +12,7 @@ export class IsomorphicFetchHttpLibrary implements HttpLibrary { method: method, body: body as any, headers: request.getHeaders(), + signal: request.getSignal(), agent: request.getAgent(), }).then((resp: any) => { const headers: { [name: string]: string } = {}; diff --git a/src/gen/middleware.ts b/src/gen/middleware.ts index 7dcc60bedc..a123ecf210 100644 --- a/src/gen/middleware.ts +++ b/src/gen/middleware.ts @@ -26,10 +26,7 @@ export interface Middleware { } export class PromiseMiddlewareWrapper implements Middleware { - - public constructor(private middleware: PromiseMiddleware) { - - } + public constructor(private middleware: PromiseMiddleware) {} pre(context: RequestContext): Observable { return from(this.middleware.pre(context)); @@ -38,7 +35,6 @@ export class PromiseMiddlewareWrapper implements Middleware { post(context: ResponseContext): Observable { return from(this.middleware.post(context)); } - } /** diff --git a/src/gen/models/ObjectSerializer.ts b/src/gen/models/ObjectSerializer.ts index 2826206717..c0c8bc6fb4 100644 --- a/src/gen/models/ObjectSerializer.ts +++ b/src/gen/models/ObjectSerializer.ts @@ -2228,13 +2228,16 @@ export class ObjectSerializer { } return transformedData; } else if (type === "Date") { + if (!(data instanceof Date)) { + return data; + } if (format == "date") { let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() + let monthStr = month < 10 ? "0" + month.toString() : month.toString() let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); + let dayStr = day < 10 ? "0" + day.toString() : day.toString(); - return data.getFullYear() + "-" + month + "-" + day; + return data.getFullYear() + "-" + monthStr + "-" + dayStr; } else { return data.toISOString(); } diff --git a/src/gen/types/ObservableAPI.ts b/src/gen/types/ObservableAPI.ts index 6abf82333a..14ba0e55f5 100644 --- a/src/gen/types/ObservableAPI.ts +++ b/src/gen/types/ObservableAPI.ts @@ -1,5 +1,5 @@ import { ResponseContext, RequestContext, HttpFile, HttpInfo } from '../http/http.js'; -import { Configuration, ConfigurationOptions } from '../configuration.js' +import { Configuration, ConfigurationOptions, mergeConfiguration } from '../configuration.js' import type { Middleware } from '../middleware.js'; import { Observable, of, from } from '../rxjsStub.js'; import {mergeMap, map} from '../rxjsStub.js'; @@ -718,47 +718,19 @@ export class ObservableAdmissionregistrationApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -799,47 +771,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createMutatingWebhookConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createMutatingWebhookConfigurationWithHttpInfo(rsp))); @@ -867,47 +811,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -935,47 +851,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -1003,47 +891,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createValidatingWebhookConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createValidatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1081,47 +941,19 @@ export class ObservableAdmissionregistrationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionMutatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1169,47 +1001,19 @@ export class ObservableAdmissionregistrationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -1257,47 +1061,19 @@ export class ObservableAdmissionregistrationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -1345,47 +1121,19 @@ export class ObservableAdmissionregistrationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionValidatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1426,47 +1174,19 @@ export class ObservableAdmissionregistrationV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteMutatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1500,47 +1220,19 @@ export class ObservableAdmissionregistrationV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -1574,47 +1266,19 @@ export class ObservableAdmissionregistrationV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -1648,47 +1312,19 @@ export class ObservableAdmissionregistrationV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteValidatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1714,47 +1350,19 @@ export class ObservableAdmissionregistrationV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -1783,47 +1391,19 @@ export class ObservableAdmissionregistrationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listMutatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1863,47 +1443,19 @@ export class ObservableAdmissionregistrationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -1943,47 +1495,19 @@ export class ObservableAdmissionregistrationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -2023,47 +1547,19 @@ export class ObservableAdmissionregistrationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listValidatingWebhookConfigurationWithHttpInfo(rsp))); @@ -2099,47 +1595,19 @@ export class ObservableAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchMutatingWebhookConfigurationWithHttpInfo(rsp))); @@ -2171,47 +1639,19 @@ export class ObservableAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -2243,47 +1683,19 @@ export class ObservableAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -2315,47 +1727,19 @@ export class ObservableAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingAdmissionPolicyStatusWithHttpInfo(rsp))); @@ -2387,47 +1771,19 @@ export class ObservableAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingWebhookConfigurationWithHttpInfo(rsp))); @@ -2454,47 +1810,19 @@ export class ObservableAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readMutatingWebhookConfiguration(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readMutatingWebhookConfigurationWithHttpInfo(rsp))); @@ -2516,47 +1844,19 @@ export class ObservableAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicy(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -2578,47 +1878,19 @@ export class ObservableAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicyBinding(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -2640,47 +1912,19 @@ export class ObservableAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicyStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingAdmissionPolicyStatusWithHttpInfo(rsp))); @@ -2702,47 +1946,19 @@ export class ObservableAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readValidatingWebhookConfiguration(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingWebhookConfigurationWithHttpInfo(rsp))); @@ -2768,47 +1984,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceMutatingWebhookConfigurationWithHttpInfo(rsp))); @@ -2838,47 +2026,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -2908,47 +2068,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -2978,47 +2110,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingAdmissionPolicyStatusWithHttpInfo(rsp))); @@ -3048,47 +2152,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingWebhookConfigurationWithHttpInfo(rsp))); @@ -3135,47 +2211,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createMutatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createMutatingAdmissionPolicyWithHttpInfo(rsp))); @@ -3203,47 +2251,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createMutatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createMutatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -3281,47 +2301,19 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionMutatingAdmissionPolicyWithHttpInfo(rsp))); @@ -3369,47 +2361,19 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -3450,47 +2414,19 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteMutatingAdmissionPolicyWithHttpInfo(rsp))); @@ -3524,47 +2460,19 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteMutatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -3590,47 +2498,19 @@ export class ObservableAdmissionregistrationV1alpha1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -3659,47 +2539,19 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listMutatingAdmissionPolicyWithHttpInfo(rsp))); @@ -3739,47 +2591,19 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listMutatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -3815,47 +2639,19 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchMutatingAdmissionPolicyWithHttpInfo(rsp))); @@ -3887,47 +2683,19 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchMutatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -3954,47 +2722,19 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readMutatingAdmissionPolicy(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readMutatingAdmissionPolicyWithHttpInfo(rsp))); @@ -4016,47 +2756,19 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readMutatingAdmissionPolicyBinding(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readMutatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -4082,47 +2794,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceMutatingAdmissionPolicyWithHttpInfo(rsp))); @@ -4152,47 +2836,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceMutatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -4239,47 +2895,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -4307,47 +2935,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -4385,47 +2985,19 @@ export class ObservableAdmissionregistrationV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -4473,47 +3045,19 @@ export class ObservableAdmissionregistrationV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -4554,47 +3098,19 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -4628,47 +3144,19 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -4694,47 +3182,19 @@ export class ObservableAdmissionregistrationV1beta1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -4763,47 +3223,19 @@ export class ObservableAdmissionregistrationV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -4843,47 +3275,19 @@ export class ObservableAdmissionregistrationV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -4919,47 +3323,19 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -4991,47 +3367,19 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -5063,47 +3411,19 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingAdmissionPolicyStatusWithHttpInfo(rsp))); @@ -5130,47 +3450,19 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicy(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -5192,47 +3484,19 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicyBinding(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -5254,47 +3518,19 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicyStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingAdmissionPolicyStatusWithHttpInfo(rsp))); @@ -5320,47 +3556,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -5390,47 +3598,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -5460,47 +3640,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingAdmissionPolicyStatusWithHttpInfo(rsp))); @@ -5542,47 +3694,19 @@ export class ObservableApiextensionsApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -5623,47 +3747,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createCustomResourceDefinition(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCustomResourceDefinitionWithHttpInfo(rsp))); @@ -5701,47 +3797,19 @@ export class ObservableApiextensionsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCustomResourceDefinitionWithHttpInfo(rsp))); @@ -5782,47 +3850,19 @@ export class ObservableApiextensionsV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCustomResourceDefinitionWithHttpInfo(rsp))); @@ -5848,47 +3888,19 @@ export class ObservableApiextensionsV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -5917,47 +3929,19 @@ export class ObservableApiextensionsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCustomResourceDefinitionWithHttpInfo(rsp))); @@ -5993,47 +3977,19 @@ export class ObservableApiextensionsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCustomResourceDefinitionWithHttpInfo(rsp))); @@ -6065,47 +4021,19 @@ export class ObservableApiextensionsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCustomResourceDefinitionStatusWithHttpInfo(rsp))); @@ -6132,47 +4060,19 @@ export class ObservableApiextensionsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readCustomResourceDefinition(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCustomResourceDefinitionWithHttpInfo(rsp))); @@ -6194,47 +4094,19 @@ export class ObservableApiextensionsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readCustomResourceDefinitionStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCustomResourceDefinitionStatusWithHttpInfo(rsp))); @@ -6260,47 +4132,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCustomResourceDefinitionWithHttpInfo(rsp))); @@ -6330,47 +4174,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCustomResourceDefinitionStatusWithHttpInfo(rsp))); @@ -6412,47 +4228,19 @@ export class ObservableApiregistrationApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -6493,47 +4281,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createAPIService(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createAPIServiceWithHttpInfo(rsp))); @@ -6564,47 +4324,19 @@ export class ObservableApiregistrationV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteAPIServiceWithHttpInfo(rsp))); @@ -6645,47 +4377,19 @@ export class ObservableApiregistrationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionAPIServiceWithHttpInfo(rsp))); @@ -6718,47 +4422,19 @@ export class ObservableApiregistrationV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -6787,47 +4463,19 @@ export class ObservableApiregistrationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listAPIServiceWithHttpInfo(rsp))); @@ -6863,47 +4511,19 @@ export class ObservableApiregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchAPIService(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchAPIServiceWithHttpInfo(rsp))); @@ -6935,47 +4555,19 @@ export class ObservableApiregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchAPIServiceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchAPIServiceStatusWithHttpInfo(rsp))); @@ -7002,47 +4594,19 @@ export class ObservableApiregistrationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readAPIService(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readAPIServiceWithHttpInfo(rsp))); @@ -7064,47 +4628,19 @@ export class ObservableApiregistrationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readAPIServiceStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readAPIServiceStatusWithHttpInfo(rsp))); @@ -7130,47 +4666,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceAPIService(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceAPIServiceWithHttpInfo(rsp))); @@ -7200,47 +4708,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceAPIServiceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceAPIServiceStatusWithHttpInfo(rsp))); @@ -7282,47 +4762,19 @@ export class ObservableApisApi { * get available API versions */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIVersions(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIVersionsWithHttpInfo(rsp))); @@ -7358,47 +4810,19 @@ export class ObservableAppsApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -7440,47 +4864,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedControllerRevisionWithHttpInfo(rsp))); @@ -7510,47 +4906,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedDaemonSetWithHttpInfo(rsp))); @@ -7580,47 +4948,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedDeploymentWithHttpInfo(rsp))); @@ -7650,47 +4990,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedReplicaSetWithHttpInfo(rsp))); @@ -7720,47 +5032,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedStatefulSetWithHttpInfo(rsp))); @@ -7800,47 +5084,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedControllerRevisionWithHttpInfo(rsp))); @@ -7890,47 +5146,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedDaemonSetWithHttpInfo(rsp))); @@ -7980,47 +5208,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedDeploymentWithHttpInfo(rsp))); @@ -8070,47 +5270,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedReplicaSetWithHttpInfo(rsp))); @@ -8160,47 +5332,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedStatefulSetWithHttpInfo(rsp))); @@ -8243,47 +5387,19 @@ export class ObservableAppsV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedControllerRevisionWithHttpInfo(rsp))); @@ -8319,47 +5435,19 @@ export class ObservableAppsV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedDaemonSetWithHttpInfo(rsp))); @@ -8395,47 +5483,19 @@ export class ObservableAppsV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedDeploymentWithHttpInfo(rsp))); @@ -8471,47 +5531,19 @@ export class ObservableAppsV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedReplicaSetWithHttpInfo(rsp))); @@ -8547,47 +5579,19 @@ export class ObservableAppsV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedStatefulSetWithHttpInfo(rsp))); @@ -8614,47 +5618,19 @@ export class ObservableAppsV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -8683,47 +5659,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listControllerRevisionForAllNamespacesWithHttpInfo(rsp))); @@ -8763,47 +5711,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listDaemonSetForAllNamespacesWithHttpInfo(rsp))); @@ -8843,47 +5763,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listDeploymentForAllNamespacesWithHttpInfo(rsp))); @@ -8924,47 +5816,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedControllerRevisionWithHttpInfo(rsp))); @@ -9006,47 +5870,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedDaemonSetWithHttpInfo(rsp))); @@ -9088,47 +5924,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedDeploymentWithHttpInfo(rsp))); @@ -9170,47 +5978,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedReplicaSetWithHttpInfo(rsp))); @@ -9252,47 +6032,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedStatefulSetWithHttpInfo(rsp))); @@ -9333,47 +6085,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listReplicaSetForAllNamespacesWithHttpInfo(rsp))); @@ -9413,47 +6137,19 @@ export class ObservableAppsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listStatefulSetForAllNamespacesWithHttpInfo(rsp))); @@ -9490,47 +6186,19 @@ export class ObservableAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedControllerRevisionWithHttpInfo(rsp))); @@ -9564,47 +6232,19 @@ export class ObservableAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDaemonSetWithHttpInfo(rsp))); @@ -9638,47 +6278,19 @@ export class ObservableAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDaemonSetStatusWithHttpInfo(rsp))); @@ -9712,47 +6324,19 @@ export class ObservableAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDeploymentWithHttpInfo(rsp))); @@ -9786,47 +6370,19 @@ export class ObservableAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDeploymentScaleWithHttpInfo(rsp))); @@ -9860,47 +6416,19 @@ export class ObservableAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDeploymentStatusWithHttpInfo(rsp))); @@ -9934,47 +6462,19 @@ export class ObservableAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicaSetWithHttpInfo(rsp))); @@ -10008,47 +6508,19 @@ export class ObservableAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicaSetScaleWithHttpInfo(rsp))); @@ -10082,47 +6554,19 @@ export class ObservableAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicaSetStatusWithHttpInfo(rsp))); @@ -10156,47 +6600,19 @@ export class ObservableAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedStatefulSetWithHttpInfo(rsp))); @@ -10230,47 +6646,19 @@ export class ObservableAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedStatefulSetScaleWithHttpInfo(rsp))); @@ -10304,47 +6692,19 @@ export class ObservableAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedStatefulSetStatusWithHttpInfo(rsp))); @@ -10373,47 +6733,19 @@ export class ObservableAppsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedControllerRevision(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedControllerRevisionWithHttpInfo(rsp))); @@ -10437,47 +6769,19 @@ export class ObservableAppsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedDaemonSet(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDaemonSetWithHttpInfo(rsp))); @@ -10501,47 +6805,19 @@ export class ObservableAppsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedDaemonSetStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDaemonSetStatusWithHttpInfo(rsp))); @@ -10565,47 +6841,19 @@ export class ObservableAppsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedDeployment(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDeploymentWithHttpInfo(rsp))); @@ -10629,47 +6877,19 @@ export class ObservableAppsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedDeploymentScale(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDeploymentScaleWithHttpInfo(rsp))); @@ -10693,47 +6913,19 @@ export class ObservableAppsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedDeploymentStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDeploymentStatusWithHttpInfo(rsp))); @@ -10757,47 +6949,19 @@ export class ObservableAppsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedReplicaSet(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicaSetWithHttpInfo(rsp))); @@ -10821,47 +6985,19 @@ export class ObservableAppsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedReplicaSetScale(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicaSetScaleWithHttpInfo(rsp))); @@ -10885,47 +7021,19 @@ export class ObservableAppsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedReplicaSetStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicaSetStatusWithHttpInfo(rsp))); @@ -10949,47 +7057,19 @@ export class ObservableAppsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedStatefulSet(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedStatefulSetWithHttpInfo(rsp))); @@ -11013,47 +7093,19 @@ export class ObservableAppsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedStatefulSetScale(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedStatefulSetScaleWithHttpInfo(rsp))); @@ -11077,47 +7129,19 @@ export class ObservableAppsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedStatefulSetStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedStatefulSetStatusWithHttpInfo(rsp))); @@ -11145,47 +7169,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedControllerRevisionWithHttpInfo(rsp))); @@ -11217,47 +7213,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDaemonSetWithHttpInfo(rsp))); @@ -11289,47 +7257,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDaemonSetStatusWithHttpInfo(rsp))); @@ -11361,47 +7301,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDeploymentWithHttpInfo(rsp))); @@ -11433,47 +7345,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDeploymentScaleWithHttpInfo(rsp))); @@ -11505,47 +7389,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDeploymentStatusWithHttpInfo(rsp))); @@ -11577,47 +7433,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicaSetWithHttpInfo(rsp))); @@ -11649,47 +7477,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicaSetScaleWithHttpInfo(rsp))); @@ -11721,47 +7521,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicaSetStatusWithHttpInfo(rsp))); @@ -11793,47 +7565,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedStatefulSetWithHttpInfo(rsp))); @@ -11865,47 +7609,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedStatefulSetScaleWithHttpInfo(rsp))); @@ -11937,47 +7653,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedStatefulSetStatusWithHttpInfo(rsp))); @@ -12020,47 +7708,19 @@ export class ObservableAuthenticationApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -12101,47 +7761,19 @@ export class ObservableAuthenticationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSelfSubjectReviewWithHttpInfo(rsp))); @@ -12169,47 +7801,19 @@ export class ObservableAuthenticationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createTokenReview(body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createTokenReviewWithHttpInfo(rsp))); @@ -12232,47 +7836,19 @@ export class ObservableAuthenticationV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -12308,47 +7884,19 @@ export class ObservableAuthorizationApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -12390,47 +7938,19 @@ export class ObservableAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLocalSubjectAccessReviewWithHttpInfo(rsp))); @@ -12459,47 +7979,19 @@ export class ObservableAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createSelfSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSelfSubjectAccessReviewWithHttpInfo(rsp))); @@ -12527,47 +8019,19 @@ export class ObservableAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createSelfSubjectRulesReview(body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSelfSubjectRulesReviewWithHttpInfo(rsp))); @@ -12595,47 +8059,19 @@ export class ObservableAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSubjectAccessReviewWithHttpInfo(rsp))); @@ -12658,47 +8094,19 @@ export class ObservableAuthorizationV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -12734,47 +8142,19 @@ export class ObservableAutoscalingApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -12816,47 +8196,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -12896,47 +8248,19 @@ export class ObservableAutoscalingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -12979,47 +8303,19 @@ export class ObservableAutoscalingV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -13046,47 +8342,19 @@ export class ObservableAutoscalingV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -13115,47 +8383,19 @@ export class ObservableAutoscalingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(rsp))); @@ -13196,47 +8436,19 @@ export class ObservableAutoscalingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -13274,47 +8486,19 @@ export class ObservableAutoscalingV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -13348,47 +8532,19 @@ export class ObservableAutoscalingV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); @@ -13417,47 +8573,19 @@ export class ObservableAutoscalingV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -13481,47 +8609,19 @@ export class ObservableAutoscalingV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); @@ -13549,47 +8649,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -13621,47 +8693,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); @@ -13710,47 +8754,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -13790,47 +8806,19 @@ export class ObservableAutoscalingV2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -13873,47 +8861,19 @@ export class ObservableAutoscalingV2Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -13940,47 +8900,19 @@ export class ObservableAutoscalingV2Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -14009,47 +8941,19 @@ export class ObservableAutoscalingV2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(rsp))); @@ -14090,47 +8994,19 @@ export class ObservableAutoscalingV2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -14168,47 +9044,19 @@ export class ObservableAutoscalingV2Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -14242,47 +9090,19 @@ export class ObservableAutoscalingV2Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); @@ -14311,47 +9131,19 @@ export class ObservableAutoscalingV2Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -14375,47 +9167,19 @@ export class ObservableAutoscalingV2Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); @@ -14443,47 +9207,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -14515,47 +9251,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); @@ -14598,47 +9306,19 @@ export class ObservableBatchApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -14680,47 +9360,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCronJobWithHttpInfo(rsp))); @@ -14750,47 +9402,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedJobWithHttpInfo(rsp))); @@ -14830,47 +9454,19 @@ export class ObservableBatchV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCronJobWithHttpInfo(rsp))); @@ -14920,47 +9516,19 @@ export class ObservableBatchV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedJobWithHttpInfo(rsp))); @@ -15003,47 +9571,19 @@ export class ObservableBatchV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCronJobWithHttpInfo(rsp))); @@ -15079,47 +9619,19 @@ export class ObservableBatchV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedJobWithHttpInfo(rsp))); @@ -15146,47 +9658,19 @@ export class ObservableBatchV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -15215,47 +9699,19 @@ export class ObservableBatchV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCronJobForAllNamespacesWithHttpInfo(rsp))); @@ -15295,47 +9751,19 @@ export class ObservableBatchV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listJobForAllNamespacesWithHttpInfo(rsp))); @@ -15376,47 +9804,19 @@ export class ObservableBatchV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCronJobWithHttpInfo(rsp))); @@ -15458,47 +9858,19 @@ export class ObservableBatchV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedJobWithHttpInfo(rsp))); @@ -15536,47 +9908,19 @@ export class ObservableBatchV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCronJobWithHttpInfo(rsp))); @@ -15610,47 +9954,19 @@ export class ObservableBatchV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCronJobStatusWithHttpInfo(rsp))); @@ -15684,47 +10000,19 @@ export class ObservableBatchV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedJobWithHttpInfo(rsp))); @@ -15758,47 +10046,19 @@ export class ObservableBatchV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedJobStatusWithHttpInfo(rsp))); @@ -15827,47 +10087,19 @@ export class ObservableBatchV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedCronJob(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCronJobWithHttpInfo(rsp))); @@ -15891,47 +10123,19 @@ export class ObservableBatchV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedCronJobStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCronJobStatusWithHttpInfo(rsp))); @@ -15955,47 +10159,19 @@ export class ObservableBatchV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedJob(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedJobWithHttpInfo(rsp))); @@ -16019,47 +10195,19 @@ export class ObservableBatchV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedJobStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedJobStatusWithHttpInfo(rsp))); @@ -16087,47 +10235,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCronJobWithHttpInfo(rsp))); @@ -16159,47 +10279,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCronJobStatusWithHttpInfo(rsp))); @@ -16231,47 +10323,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedJobWithHttpInfo(rsp))); @@ -16303,47 +10367,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedJobStatusWithHttpInfo(rsp))); @@ -16386,47 +10422,19 @@ export class ObservableCertificatesApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -16467,47 +10475,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createCertificateSigningRequest(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCertificateSigningRequestWithHttpInfo(rsp))); @@ -16538,47 +10518,19 @@ export class ObservableCertificatesV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCertificateSigningRequestWithHttpInfo(rsp))); @@ -16619,47 +10571,19 @@ export class ObservableCertificatesV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCertificateSigningRequestWithHttpInfo(rsp))); @@ -16692,47 +10616,19 @@ export class ObservableCertificatesV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -16761,47 +10657,19 @@ export class ObservableCertificatesV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCertificateSigningRequestWithHttpInfo(rsp))); @@ -16837,47 +10705,19 @@ export class ObservableCertificatesV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCertificateSigningRequestWithHttpInfo(rsp))); @@ -16909,47 +10749,19 @@ export class ObservableCertificatesV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCertificateSigningRequestApprovalWithHttpInfo(rsp))); @@ -16981,47 +10793,19 @@ export class ObservableCertificatesV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCertificateSigningRequestStatusWithHttpInfo(rsp))); @@ -17048,47 +10832,19 @@ export class ObservableCertificatesV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readCertificateSigningRequest(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCertificateSigningRequestWithHttpInfo(rsp))); @@ -17110,47 +10866,19 @@ export class ObservableCertificatesV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readCertificateSigningRequestApproval(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCertificateSigningRequestApprovalWithHttpInfo(rsp))); @@ -17172,47 +10900,19 @@ export class ObservableCertificatesV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readCertificateSigningRequestStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCertificateSigningRequestStatusWithHttpInfo(rsp))); @@ -17238,47 +10938,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCertificateSigningRequestWithHttpInfo(rsp))); @@ -17308,47 +10980,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCertificateSigningRequestApprovalWithHttpInfo(rsp))); @@ -17378,47 +11022,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCertificateSigningRequestStatusWithHttpInfo(rsp))); @@ -17465,47 +11081,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createClusterTrustBundle(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterTrustBundleWithHttpInfo(rsp))); @@ -17536,47 +11124,19 @@ export class ObservableCertificatesV1alpha1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterTrustBundleWithHttpInfo(rsp))); @@ -17617,47 +11177,19 @@ export class ObservableCertificatesV1alpha1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterTrustBundleWithHttpInfo(rsp))); @@ -17690,47 +11222,19 @@ export class ObservableCertificatesV1alpha1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -17759,47 +11263,19 @@ export class ObservableCertificatesV1alpha1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterTrustBundleWithHttpInfo(rsp))); @@ -17835,47 +11311,19 @@ export class ObservableCertificatesV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterTrustBundleWithHttpInfo(rsp))); @@ -17902,47 +11350,19 @@ export class ObservableCertificatesV1alpha1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readClusterTrustBundle(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterTrustBundleWithHttpInfo(rsp))); @@ -17968,47 +11388,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterTrustBundleWithHttpInfo(rsp))); @@ -18055,47 +11447,19 @@ export class ObservableCertificatesV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta1ClusterTrustBundle, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createClusterTrustBundle(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterTrustBundleWithHttpInfo(rsp))); @@ -18126,47 +11490,19 @@ export class ObservableCertificatesV1beta1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterTrustBundleWithHttpInfo(rsp))); @@ -18207,47 +11543,19 @@ export class ObservableCertificatesV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterTrustBundleWithHttpInfo(rsp))); @@ -18280,47 +11588,19 @@ export class ObservableCertificatesV1beta1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -18349,47 +11629,19 @@ export class ObservableCertificatesV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterTrustBundleWithHttpInfo(rsp))); @@ -18425,47 +11677,19 @@ export class ObservableCertificatesV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterTrustBundleWithHttpInfo(rsp))); @@ -18492,47 +11716,19 @@ export class ObservableCertificatesV1beta1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readClusterTrustBundle(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterTrustBundleWithHttpInfo(rsp))); @@ -18558,47 +11754,19 @@ export class ObservableCertificatesV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta1ClusterTrustBundle, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterTrustBundleWithHttpInfo(rsp))); @@ -18640,47 +11808,19 @@ export class ObservableCoordinationApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -18722,47 +11862,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedLease(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLeaseWithHttpInfo(rsp))); @@ -18802,47 +11914,19 @@ export class ObservableCoordinationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedLeaseWithHttpInfo(rsp))); @@ -18885,47 +11969,19 @@ export class ObservableCoordinationV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedLeaseWithHttpInfo(rsp))); @@ -18952,47 +12008,19 @@ export class ObservableCoordinationV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -19021,47 +12049,19 @@ export class ObservableCoordinationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listLeaseForAllNamespacesWithHttpInfo(rsp))); @@ -19102,47 +12102,19 @@ export class ObservableCoordinationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedLeaseWithHttpInfo(rsp))); @@ -19180,47 +12152,19 @@ export class ObservableCoordinationV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedLeaseWithHttpInfo(rsp))); @@ -19249,47 +12193,19 @@ export class ObservableCoordinationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedLease(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedLeaseWithHttpInfo(rsp))); @@ -19317,47 +12233,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedLeaseWithHttpInfo(rsp))); @@ -19406,47 +12294,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedLeaseCandidate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -19486,47 +12346,19 @@ export class ObservableCoordinationV1alpha2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -19569,47 +12401,19 @@ export class ObservableCoordinationV1alpha2Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -19636,47 +12440,19 @@ export class ObservableCoordinationV1alpha2Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -19705,47 +12481,19 @@ export class ObservableCoordinationV1alpha2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listLeaseCandidateForAllNamespacesWithHttpInfo(rsp))); @@ -19786,47 +12534,19 @@ export class ObservableCoordinationV1alpha2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -19864,47 +12584,19 @@ export class ObservableCoordinationV1alpha2Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -19933,47 +12625,19 @@ export class ObservableCoordinationV1alpha2Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedLeaseCandidate(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -20001,47 +12665,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -20090,47 +12726,19 @@ export class ObservableCoordinationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta1LeaseCandidate, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedLeaseCandidate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -20170,47 +12778,19 @@ export class ObservableCoordinationV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -20253,47 +12833,19 @@ export class ObservableCoordinationV1beta1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -20320,47 +12872,19 @@ export class ObservableCoordinationV1beta1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -20389,47 +12913,19 @@ export class ObservableCoordinationV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listLeaseCandidateForAllNamespacesWithHttpInfo(rsp))); @@ -20470,47 +12966,19 @@ export class ObservableCoordinationV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -20548,47 +13016,19 @@ export class ObservableCoordinationV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -20617,47 +13057,19 @@ export class ObservableCoordinationV1beta1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedLeaseCandidate(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -20685,47 +13097,19 @@ export class ObservableCoordinationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta1LeaseCandidate, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -20768,47 +13152,19 @@ export class ObservableCoreApi { * get available API versions */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIVersions(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIVersionsWithHttpInfo(rsp))); @@ -20847,47 +13203,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectDeleteNamespacedPodProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedPodProxyWithHttpInfo(rsp))); @@ -20912,47 +13240,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectDeleteNamespacedPodProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedPodProxyWithPathWithHttpInfo(rsp))); @@ -20977,47 +13277,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectDeleteNamespacedServiceProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedServiceProxyWithHttpInfo(rsp))); @@ -21042,47 +13314,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(rsp))); @@ -21106,47 +13350,19 @@ export class ObservableCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectDeleteNodeProxy(name, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNodeProxyWithHttpInfo(rsp))); @@ -21169,47 +13385,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectDeleteNodeProxyWithPath(name, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNodeProxyWithPathWithHttpInfo(rsp))); @@ -21237,47 +13425,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectGetNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodAttachWithHttpInfo(rsp))); @@ -21310,47 +13470,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodExecWithHttpInfo(rsp))); @@ -21379,47 +13511,19 @@ export class ObservableCoreV1Api { * @param [ports] List of ports to forward Required when using WebSockets */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectGetNamespacedPodPortforward(name, namespace, ports, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodPortforwardWithHttpInfo(rsp))); @@ -21443,47 +13547,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectGetNamespacedPodProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodProxyWithHttpInfo(rsp))); @@ -21508,47 +13584,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectGetNamespacedPodProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodProxyWithPathWithHttpInfo(rsp))); @@ -21573,47 +13621,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectGetNamespacedServiceProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedServiceProxyWithHttpInfo(rsp))); @@ -21638,47 +13658,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectGetNamespacedServiceProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedServiceProxyWithPathWithHttpInfo(rsp))); @@ -21702,47 +13694,19 @@ export class ObservableCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectGetNodeProxy(name, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNodeProxyWithHttpInfo(rsp))); @@ -21765,47 +13729,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectGetNodeProxyWithPath(name, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNodeProxyWithPathWithHttpInfo(rsp))); @@ -21829,47 +13765,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectHeadNamespacedPodProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedPodProxyWithHttpInfo(rsp))); @@ -21894,47 +13802,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectHeadNamespacedPodProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedPodProxyWithPathWithHttpInfo(rsp))); @@ -21959,47 +13839,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectHeadNamespacedServiceProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedServiceProxyWithHttpInfo(rsp))); @@ -22024,47 +13876,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectHeadNamespacedServiceProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedServiceProxyWithPathWithHttpInfo(rsp))); @@ -22088,47 +13912,19 @@ export class ObservableCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectHeadNodeProxy(name, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNodeProxyWithHttpInfo(rsp))); @@ -22151,47 +13947,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectHeadNodeProxyWithPath(name, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNodeProxyWithPathWithHttpInfo(rsp))); @@ -22215,47 +13983,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectOptionsNamespacedPodProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedPodProxyWithHttpInfo(rsp))); @@ -22280,47 +14020,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectOptionsNamespacedPodProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedPodProxyWithPathWithHttpInfo(rsp))); @@ -22345,47 +14057,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectOptionsNamespacedServiceProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedServiceProxyWithHttpInfo(rsp))); @@ -22410,47 +14094,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(rsp))); @@ -22474,47 +14130,19 @@ export class ObservableCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectOptionsNodeProxy(name, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNodeProxyWithHttpInfo(rsp))); @@ -22537,47 +14165,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectOptionsNodeProxyWithPath(name, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNodeProxyWithPathWithHttpInfo(rsp))); @@ -22601,47 +14201,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPatchNamespacedPodProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedPodProxyWithHttpInfo(rsp))); @@ -22666,47 +14238,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPatchNamespacedPodProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedPodProxyWithPathWithHttpInfo(rsp))); @@ -22731,47 +14275,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPatchNamespacedServiceProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedServiceProxyWithHttpInfo(rsp))); @@ -22796,47 +14312,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPatchNamespacedServiceProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedServiceProxyWithPathWithHttpInfo(rsp))); @@ -22860,47 +14348,19 @@ export class ObservableCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPatchNodeProxy(name, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNodeProxyWithHttpInfo(rsp))); @@ -22923,47 +14383,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPatchNodeProxyWithPath(name, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNodeProxyWithPathWithHttpInfo(rsp))); @@ -22991,47 +14423,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPostNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodAttachWithHttpInfo(rsp))); @@ -23064,47 +14468,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodExecWithHttpInfo(rsp))); @@ -23133,47 +14509,19 @@ export class ObservableCoreV1Api { * @param [ports] List of ports to forward Required when using WebSockets */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPostNamespacedPodPortforward(name, namespace, ports, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodPortforwardWithHttpInfo(rsp))); @@ -23197,47 +14545,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPostNamespacedPodProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodProxyWithHttpInfo(rsp))); @@ -23262,47 +14582,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPostNamespacedPodProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodProxyWithPathWithHttpInfo(rsp))); @@ -23327,47 +14619,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPostNamespacedServiceProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedServiceProxyWithHttpInfo(rsp))); @@ -23392,47 +14656,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPostNamespacedServiceProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedServiceProxyWithPathWithHttpInfo(rsp))); @@ -23456,47 +14692,19 @@ export class ObservableCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPostNodeProxy(name, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNodeProxyWithHttpInfo(rsp))); @@ -23519,47 +14727,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPostNodeProxyWithPath(name, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNodeProxyWithPathWithHttpInfo(rsp))); @@ -23583,47 +14763,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPutNamespacedPodProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedPodProxyWithHttpInfo(rsp))); @@ -23648,47 +14800,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPutNamespacedPodProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedPodProxyWithPathWithHttpInfo(rsp))); @@ -23713,47 +14837,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPutNamespacedServiceProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedServiceProxyWithHttpInfo(rsp))); @@ -23778,47 +14874,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPutNamespacedServiceProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedServiceProxyWithPathWithHttpInfo(rsp))); @@ -23842,47 +14910,19 @@ export class ObservableCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPutNodeProxy(name, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNodeProxyWithHttpInfo(rsp))); @@ -23905,47 +14945,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.connectPutNodeProxyWithPath(name, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNodeProxyWithPathWithHttpInfo(rsp))); @@ -23971,47 +14983,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespace(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespaceWithHttpInfo(rsp))); @@ -24040,47 +15024,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedBinding(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedBindingWithHttpInfo(rsp))); @@ -24110,47 +15066,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedConfigMap(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedConfigMapWithHttpInfo(rsp))); @@ -24180,47 +15108,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedEndpoints(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEndpointsWithHttpInfo(rsp))); @@ -24250,47 +15150,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEventWithHttpInfo(rsp))); @@ -24320,47 +15192,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedLimitRange(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLimitRangeWithHttpInfo(rsp))); @@ -24390,47 +15234,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedPersistentVolumeClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); @@ -24460,47 +15276,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedPod(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodWithHttpInfo(rsp))); @@ -24531,47 +15319,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedPodBinding(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodBindingWithHttpInfo(rsp))); @@ -24603,47 +15363,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedPodEviction(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodEvictionWithHttpInfo(rsp))); @@ -24674,47 +15406,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedPodTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodTemplateWithHttpInfo(rsp))); @@ -24744,47 +15448,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedReplicationController(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedReplicationControllerWithHttpInfo(rsp))); @@ -24814,47 +15490,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedResourceQuota(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedResourceQuotaWithHttpInfo(rsp))); @@ -24884,47 +15532,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedSecret(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedSecretWithHttpInfo(rsp))); @@ -24954,47 +15574,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedService(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedServiceWithHttpInfo(rsp))); @@ -25024,47 +15616,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedServiceAccount(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedServiceAccountWithHttpInfo(rsp))); @@ -25095,47 +15659,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedServiceAccountToken(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedServiceAccountTokenWithHttpInfo(rsp))); @@ -25165,47 +15701,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNode(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNodeWithHttpInfo(rsp))); @@ -25233,47 +15741,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createPersistentVolume(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPersistentVolumeWithHttpInfo(rsp))); @@ -25312,47 +15792,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedConfigMapWithHttpInfo(rsp))); @@ -25402,47 +15854,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEndpointsWithHttpInfo(rsp))); @@ -25492,47 +15916,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEventWithHttpInfo(rsp))); @@ -25582,47 +15978,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedLimitRangeWithHttpInfo(rsp))); @@ -25672,47 +16040,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); @@ -25762,47 +16102,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPodWithHttpInfo(rsp))); @@ -25852,47 +16164,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPodTemplateWithHttpInfo(rsp))); @@ -25942,47 +16226,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedReplicationControllerWithHttpInfo(rsp))); @@ -26032,47 +16288,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedResourceQuotaWithHttpInfo(rsp))); @@ -26122,47 +16350,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedSecretWithHttpInfo(rsp))); @@ -26212,47 +16412,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedServiceWithHttpInfo(rsp))); @@ -26302,47 +16474,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedServiceAccountWithHttpInfo(rsp))); @@ -26391,47 +16535,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNodeWithHttpInfo(rsp))); @@ -26479,47 +16595,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPersistentVolumeWithHttpInfo(rsp))); @@ -26560,47 +16648,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespaceWithHttpInfo(rsp))); @@ -26635,47 +16695,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedConfigMapWithHttpInfo(rsp))); @@ -26711,47 +16743,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEndpointsWithHttpInfo(rsp))); @@ -26787,47 +16791,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEventWithHttpInfo(rsp))); @@ -26863,47 +16839,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedLimitRangeWithHttpInfo(rsp))); @@ -26939,47 +16887,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); @@ -27015,47 +16935,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPodWithHttpInfo(rsp))); @@ -27091,47 +16983,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPodTemplateWithHttpInfo(rsp))); @@ -27167,47 +17031,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedReplicationControllerWithHttpInfo(rsp))); @@ -27243,47 +17079,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedResourceQuotaWithHttpInfo(rsp))); @@ -27319,47 +17127,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedSecretWithHttpInfo(rsp))); @@ -27395,47 +17175,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedServiceWithHttpInfo(rsp))); @@ -27471,47 +17223,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedServiceAccountWithHttpInfo(rsp))); @@ -27546,47 +17270,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNodeWithHttpInfo(rsp))); @@ -27620,47 +17316,19 @@ export class ObservableCoreV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePersistentVolumeWithHttpInfo(rsp))); @@ -27686,47 +17354,19 @@ export class ObservableCoreV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -27755,47 +17395,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listComponentStatusWithHttpInfo(rsp))); @@ -27835,47 +17447,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listConfigMapForAllNamespacesWithHttpInfo(rsp))); @@ -27915,47 +17499,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEndpointsForAllNamespacesWithHttpInfo(rsp))); @@ -27995,47 +17551,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEventForAllNamespacesWithHttpInfo(rsp))); @@ -28075,47 +17603,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listLimitRangeForAllNamespacesWithHttpInfo(rsp))); @@ -28155,47 +17655,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespaceWithHttpInfo(rsp))); @@ -28236,47 +17708,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedConfigMapWithHttpInfo(rsp))); @@ -28318,47 +17762,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEndpointsWithHttpInfo(rsp))); @@ -28400,47 +17816,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEventWithHttpInfo(rsp))); @@ -28482,47 +17870,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedLimitRangeWithHttpInfo(rsp))); @@ -28564,47 +17924,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); @@ -28646,47 +17978,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPodWithHttpInfo(rsp))); @@ -28728,47 +18032,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPodTemplateWithHttpInfo(rsp))); @@ -28810,47 +18086,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedReplicationControllerWithHttpInfo(rsp))); @@ -28892,47 +18140,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedResourceQuotaWithHttpInfo(rsp))); @@ -28974,47 +18194,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedSecretWithHttpInfo(rsp))); @@ -29056,47 +18248,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedServiceWithHttpInfo(rsp))); @@ -29138,47 +18302,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedServiceAccountWithHttpInfo(rsp))); @@ -29219,47 +18355,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNodeWithHttpInfo(rsp))); @@ -29299,47 +18407,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPersistentVolumeWithHttpInfo(rsp))); @@ -29379,47 +18459,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPersistentVolumeClaimForAllNamespacesWithHttpInfo(rsp))); @@ -29459,47 +18511,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodForAllNamespacesWithHttpInfo(rsp))); @@ -29539,47 +18563,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodTemplateForAllNamespacesWithHttpInfo(rsp))); @@ -29619,47 +18615,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listReplicationControllerForAllNamespacesWithHttpInfo(rsp))); @@ -29699,47 +18667,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceQuotaForAllNamespacesWithHttpInfo(rsp))); @@ -29779,47 +18719,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listSecretForAllNamespacesWithHttpInfo(rsp))); @@ -29859,47 +18771,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listServiceAccountForAllNamespacesWithHttpInfo(rsp))); @@ -29939,47 +18823,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listServiceForAllNamespacesWithHttpInfo(rsp))); @@ -30015,47 +18871,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchNamespace(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespaceWithHttpInfo(rsp))); @@ -30087,47 +18915,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchNamespaceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespaceStatusWithHttpInfo(rsp))); @@ -30160,47 +18960,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedConfigMapWithHttpInfo(rsp))); @@ -30234,47 +19006,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEndpointsWithHttpInfo(rsp))); @@ -30308,47 +19052,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEventWithHttpInfo(rsp))); @@ -30382,47 +19098,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedLimitRangeWithHttpInfo(rsp))); @@ -30456,47 +19144,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); @@ -30530,47 +19190,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(rsp))); @@ -30604,47 +19236,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodWithHttpInfo(rsp))); @@ -30678,47 +19282,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodEphemeralcontainersWithHttpInfo(rsp))); @@ -30752,47 +19328,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodResizeWithHttpInfo(rsp))); @@ -30826,47 +19374,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodStatusWithHttpInfo(rsp))); @@ -30900,47 +19420,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodTemplateWithHttpInfo(rsp))); @@ -30974,47 +19466,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicationControllerWithHttpInfo(rsp))); @@ -31048,47 +19512,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicationControllerScaleWithHttpInfo(rsp))); @@ -31122,47 +19558,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicationControllerStatusWithHttpInfo(rsp))); @@ -31196,47 +19604,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceQuotaWithHttpInfo(rsp))); @@ -31270,47 +19650,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceQuotaStatusWithHttpInfo(rsp))); @@ -31344,47 +19696,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedSecretWithHttpInfo(rsp))); @@ -31418,47 +19742,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedServiceWithHttpInfo(rsp))); @@ -31492,47 +19788,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedServiceAccountWithHttpInfo(rsp))); @@ -31566,47 +19834,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedServiceStatusWithHttpInfo(rsp))); @@ -31639,47 +19879,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchNode(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNodeWithHttpInfo(rsp))); @@ -31711,47 +19923,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchNodeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNodeStatusWithHttpInfo(rsp))); @@ -31783,47 +19967,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchPersistentVolume(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPersistentVolumeWithHttpInfo(rsp))); @@ -31855,47 +20011,19 @@ export class ObservableCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchPersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPersistentVolumeStatusWithHttpInfo(rsp))); @@ -31922,47 +20050,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readComponentStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readComponentStatusWithHttpInfo(rsp))); @@ -31984,47 +20084,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespace(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespaceWithHttpInfo(rsp))); @@ -32046,47 +20118,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespaceStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespaceStatusWithHttpInfo(rsp))); @@ -32109,47 +20153,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedConfigMap(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedConfigMapWithHttpInfo(rsp))); @@ -32173,47 +20189,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedEndpoints(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEndpointsWithHttpInfo(rsp))); @@ -32237,47 +20225,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedEvent(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEventWithHttpInfo(rsp))); @@ -32301,47 +20261,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedLimitRange(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedLimitRangeWithHttpInfo(rsp))); @@ -32365,47 +20297,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedPersistentVolumeClaim(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); @@ -32429,47 +20333,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedPersistentVolumeClaimStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPersistentVolumeClaimStatusWithHttpInfo(rsp))); @@ -32493,47 +20369,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedPod(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodWithHttpInfo(rsp))); @@ -32557,47 +20405,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedPodEphemeralcontainers(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodEphemeralcontainersWithHttpInfo(rsp))); @@ -32630,47 +20450,19 @@ export class ObservableCoreV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodLogWithHttpInfo(rsp))); @@ -32703,47 +20495,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedPodResize(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodResizeWithHttpInfo(rsp))); @@ -32767,47 +20531,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedPodStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodStatusWithHttpInfo(rsp))); @@ -32831,47 +20567,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedPodTemplate(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodTemplateWithHttpInfo(rsp))); @@ -32895,47 +20603,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedReplicationController(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicationControllerWithHttpInfo(rsp))); @@ -32959,47 +20639,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedReplicationControllerScale(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicationControllerScaleWithHttpInfo(rsp))); @@ -33023,47 +20675,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedReplicationControllerStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicationControllerStatusWithHttpInfo(rsp))); @@ -33087,47 +20711,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedResourceQuota(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceQuotaWithHttpInfo(rsp))); @@ -33151,47 +20747,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedResourceQuotaStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceQuotaStatusWithHttpInfo(rsp))); @@ -33215,47 +20783,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedSecret(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedSecretWithHttpInfo(rsp))); @@ -33279,47 +20819,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedService(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedServiceWithHttpInfo(rsp))); @@ -33343,47 +20855,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedServiceAccount(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedServiceAccountWithHttpInfo(rsp))); @@ -33407,47 +20891,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedServiceStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedServiceStatusWithHttpInfo(rsp))); @@ -33470,47 +20926,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNode(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNodeWithHttpInfo(rsp))); @@ -33532,47 +20960,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNodeStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNodeStatusWithHttpInfo(rsp))); @@ -33594,47 +20994,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readPersistentVolume(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPersistentVolumeWithHttpInfo(rsp))); @@ -33656,47 +21028,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readPersistentVolumeStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPersistentVolumeStatusWithHttpInfo(rsp))); @@ -33722,47 +21066,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespace(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespaceWithHttpInfo(rsp))); @@ -33792,47 +21108,19 @@ export class ObservableCoreV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespaceFinalize(name, body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespaceFinalizeWithHttpInfo(rsp))); @@ -33862,47 +21150,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespaceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespaceStatusWithHttpInfo(rsp))); @@ -33933,47 +21193,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedConfigMapWithHttpInfo(rsp))); @@ -34005,47 +21237,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEndpointsWithHttpInfo(rsp))); @@ -34077,47 +21281,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEventWithHttpInfo(rsp))); @@ -34149,47 +21325,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedLimitRangeWithHttpInfo(rsp))); @@ -34221,47 +21369,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); @@ -34293,47 +21413,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(rsp))); @@ -34365,47 +21457,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodWithHttpInfo(rsp))); @@ -34437,47 +21501,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodEphemeralcontainersWithHttpInfo(rsp))); @@ -34509,47 +21545,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodResizeWithHttpInfo(rsp))); @@ -34581,47 +21589,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodStatusWithHttpInfo(rsp))); @@ -34653,47 +21633,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodTemplateWithHttpInfo(rsp))); @@ -34725,47 +21677,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicationControllerWithHttpInfo(rsp))); @@ -34797,47 +21721,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicationControllerScaleWithHttpInfo(rsp))); @@ -34869,47 +21765,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicationControllerStatusWithHttpInfo(rsp))); @@ -34941,47 +21809,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceQuotaWithHttpInfo(rsp))); @@ -35013,47 +21853,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceQuotaStatusWithHttpInfo(rsp))); @@ -35085,47 +21897,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedSecretWithHttpInfo(rsp))); @@ -35157,47 +21941,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedServiceWithHttpInfo(rsp))); @@ -35229,47 +21985,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedServiceAccountWithHttpInfo(rsp))); @@ -35301,47 +22029,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedServiceStatusWithHttpInfo(rsp))); @@ -35372,47 +22072,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNode(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNodeWithHttpInfo(rsp))); @@ -35442,47 +22114,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNodeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNodeStatusWithHttpInfo(rsp))); @@ -35512,47 +22156,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replacePersistentVolume(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePersistentVolumeWithHttpInfo(rsp))); @@ -35582,47 +22198,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replacePersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePersistentVolumeStatusWithHttpInfo(rsp))); @@ -35672,47 +22260,19 @@ 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) */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterCustomObjectWithHttpInfo(rsp))); @@ -35747,47 +22307,19 @@ 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) */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCustomObjectWithHttpInfo(rsp))); @@ -35823,47 +22355,19 @@ export class ObservableCustomObjectsApi { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterCustomObjectWithHttpInfo(rsp))); @@ -35900,47 +22404,19 @@ export class ObservableCustomObjectsApi { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterCustomObjectWithHttpInfo(rsp))); @@ -35980,47 +22456,19 @@ export class ObservableCustomObjectsApi { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCustomObjectWithHttpInfo(rsp))); @@ -36060,47 +22508,19 @@ export class ObservableCustomObjectsApi { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCustomObjectWithHttpInfo(rsp))); @@ -36130,47 +22550,19 @@ export class ObservableCustomObjectsApi { * @param version The custom resource\'s version */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(group, version, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -36194,47 +22586,19 @@ export class ObservableCustomObjectsApi { * @param name the custom object\'s name */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getClusterCustomObject(group, version, plural, name, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getClusterCustomObjectWithHttpInfo(rsp))); @@ -36260,47 +22624,19 @@ export class ObservableCustomObjectsApi { * @param name the custom object\'s name */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getClusterCustomObjectScale(group, version, plural, name, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getClusterCustomObjectScaleWithHttpInfo(rsp))); @@ -36326,47 +22662,19 @@ export class ObservableCustomObjectsApi { * @param name the custom object\'s name */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getClusterCustomObjectStatus(group, version, plural, name, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getClusterCustomObjectStatusWithHttpInfo(rsp))); @@ -36393,47 +22701,19 @@ export class ObservableCustomObjectsApi { * @param name the custom object\'s name */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getNamespacedCustomObject(group, version, namespace, plural, name, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getNamespacedCustomObjectWithHttpInfo(rsp))); @@ -36461,47 +22741,19 @@ export class ObservableCustomObjectsApi { * @param name the custom object\'s name */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getNamespacedCustomObjectScale(group, version, namespace, plural, name, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getNamespacedCustomObjectScaleWithHttpInfo(rsp))); @@ -36529,47 +22781,19 @@ export class ObservableCustomObjectsApi { * @param name the custom object\'s name */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getNamespacedCustomObjectStatus(group, version, namespace, plural, name, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getNamespacedCustomObjectStatusWithHttpInfo(rsp))); @@ -36605,47 +22829,19 @@ export class ObservableCustomObjectsApi { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterCustomObjectWithHttpInfo(rsp))); @@ -36689,47 +22885,19 @@ export class ObservableCustomObjectsApi { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCustomObjectForAllNamespacesWithHttpInfo(rsp))); @@ -36774,47 +22942,19 @@ export class ObservableCustomObjectsApi { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCustomObjectWithHttpInfo(rsp))); @@ -36855,47 +22995,19 @@ export class ObservableCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterCustomObjectWithHttpInfo(rsp))); @@ -36931,47 +23043,19 @@ export class ObservableCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterCustomObjectScaleWithHttpInfo(rsp))); @@ -37007,47 +23091,19 @@ export class ObservableCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterCustomObjectStatusWithHttpInfo(rsp))); @@ -37084,47 +23140,19 @@ export class ObservableCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCustomObjectWithHttpInfo(rsp))); @@ -37162,47 +23190,19 @@ export class ObservableCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCustomObjectScaleWithHttpInfo(rsp))); @@ -37240,47 +23240,19 @@ export class ObservableCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCustomObjectStatusWithHttpInfo(rsp))); @@ -37316,47 +23288,19 @@ 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) */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterCustomObjectWithHttpInfo(rsp))); @@ -37390,47 +23334,19 @@ 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) */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterCustomObjectScaleWithHttpInfo(rsp))); @@ -37464,47 +23380,19 @@ 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) */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterCustomObjectStatusWithHttpInfo(rsp))); @@ -37539,47 +23427,19 @@ 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) */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCustomObjectWithHttpInfo(rsp))); @@ -37615,47 +23475,19 @@ 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) */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCustomObjectScaleWithHttpInfo(rsp))); @@ -37691,47 +23523,19 @@ 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) */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCustomObjectStatusWithHttpInfo(rsp))); @@ -37776,47 +23580,19 @@ export class ObservableDiscoveryApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -37858,47 +23634,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedEndpointSlice(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEndpointSliceWithHttpInfo(rsp))); @@ -37938,47 +23686,19 @@ export class ObservableDiscoveryV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEndpointSliceWithHttpInfo(rsp))); @@ -38021,47 +23741,19 @@ export class ObservableDiscoveryV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEndpointSliceWithHttpInfo(rsp))); @@ -38088,47 +23780,19 @@ export class ObservableDiscoveryV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -38157,47 +23821,19 @@ export class ObservableDiscoveryV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEndpointSliceForAllNamespacesWithHttpInfo(rsp))); @@ -38238,47 +23874,19 @@ export class ObservableDiscoveryV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEndpointSliceWithHttpInfo(rsp))); @@ -38316,47 +23924,19 @@ export class ObservableDiscoveryV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEndpointSliceWithHttpInfo(rsp))); @@ -38385,47 +23965,19 @@ export class ObservableDiscoveryV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedEndpointSlice(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEndpointSliceWithHttpInfo(rsp))); @@ -38453,47 +24005,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEndpointSliceWithHttpInfo(rsp))); @@ -38536,47 +24060,19 @@ export class ObservableEventsApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -38618,47 +24114,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEventWithHttpInfo(rsp))); @@ -38698,47 +24166,19 @@ export class ObservableEventsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEventWithHttpInfo(rsp))); @@ -38781,47 +24221,19 @@ export class ObservableEventsV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEventWithHttpInfo(rsp))); @@ -38848,47 +24260,19 @@ export class ObservableEventsV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -38917,47 +24301,19 @@ export class ObservableEventsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEventForAllNamespacesWithHttpInfo(rsp))); @@ -38998,47 +24354,19 @@ export class ObservableEventsV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEventWithHttpInfo(rsp))); @@ -39076,47 +24404,19 @@ export class ObservableEventsV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEventWithHttpInfo(rsp))); @@ -39145,47 +24445,19 @@ export class ObservableEventsV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedEvent(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEventWithHttpInfo(rsp))); @@ -39213,47 +24485,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEventWithHttpInfo(rsp))); @@ -39296,47 +24540,19 @@ export class ObservableFlowcontrolApiserverApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -39377,47 +24593,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createFlowSchema(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createFlowSchemaWithHttpInfo(rsp))); @@ -39445,47 +24633,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPriorityLevelConfigurationWithHttpInfo(rsp))); @@ -39523,47 +24683,19 @@ export class ObservableFlowcontrolApiserverV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionFlowSchemaWithHttpInfo(rsp))); @@ -39611,47 +24743,19 @@ export class ObservableFlowcontrolApiserverV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPriorityLevelConfigurationWithHttpInfo(rsp))); @@ -39692,47 +24796,19 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteFlowSchemaWithHttpInfo(rsp))); @@ -39766,47 +24842,19 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePriorityLevelConfigurationWithHttpInfo(rsp))); @@ -39832,47 +24880,19 @@ export class ObservableFlowcontrolApiserverV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -39901,47 +24921,19 @@ export class ObservableFlowcontrolApiserverV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listFlowSchemaWithHttpInfo(rsp))); @@ -39981,47 +24973,19 @@ export class ObservableFlowcontrolApiserverV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPriorityLevelConfigurationWithHttpInfo(rsp))); @@ -40057,47 +25021,19 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchFlowSchemaWithHttpInfo(rsp))); @@ -40129,47 +25065,19 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchFlowSchemaStatusWithHttpInfo(rsp))); @@ -40201,47 +25109,19 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPriorityLevelConfigurationWithHttpInfo(rsp))); @@ -40273,47 +25153,19 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPriorityLevelConfigurationStatusWithHttpInfo(rsp))); @@ -40340,47 +25192,19 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readFlowSchema(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readFlowSchemaWithHttpInfo(rsp))); @@ -40402,47 +25226,19 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readFlowSchemaStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readFlowSchemaStatusWithHttpInfo(rsp))); @@ -40464,47 +25260,19 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readPriorityLevelConfiguration(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPriorityLevelConfigurationWithHttpInfo(rsp))); @@ -40526,47 +25294,19 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readPriorityLevelConfigurationStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPriorityLevelConfigurationStatusWithHttpInfo(rsp))); @@ -40592,47 +25332,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceFlowSchemaWithHttpInfo(rsp))); @@ -40662,47 +25374,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceFlowSchemaStatusWithHttpInfo(rsp))); @@ -40732,47 +25416,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePriorityLevelConfigurationWithHttpInfo(rsp))); @@ -40802,47 +25458,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePriorityLevelConfigurationStatusWithHttpInfo(rsp))); @@ -40884,47 +25512,19 @@ export class ObservableInternalApiserverApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -40965,47 +25565,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createStorageVersion(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createStorageVersionWithHttpInfo(rsp))); @@ -41043,47 +25615,19 @@ export class ObservableInternalApiserverV1alpha1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionStorageVersionWithHttpInfo(rsp))); @@ -41124,47 +25668,19 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteStorageVersionWithHttpInfo(rsp))); @@ -41190,47 +25706,19 @@ export class ObservableInternalApiserverV1alpha1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -41259,47 +25747,19 @@ export class ObservableInternalApiserverV1alpha1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listStorageVersionWithHttpInfo(rsp))); @@ -41335,47 +25795,19 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchStorageVersion(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageVersionWithHttpInfo(rsp))); @@ -41407,47 +25839,19 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchStorageVersionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageVersionStatusWithHttpInfo(rsp))); @@ -41474,47 +25878,19 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readStorageVersion(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageVersionWithHttpInfo(rsp))); @@ -41536,47 +25912,19 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readStorageVersionStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageVersionStatusWithHttpInfo(rsp))); @@ -41602,47 +25950,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceStorageVersion(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageVersionWithHttpInfo(rsp))); @@ -41672,47 +25992,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceStorageVersionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageVersionStatusWithHttpInfo(rsp))); @@ -41754,47 +26046,19 @@ export class ObservableLogsApi { * @param logpath path to the log */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.logFileHandler(logpath, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.logFileHandlerWithHttpInfo(rsp))); @@ -41811,47 +26075,19 @@ export class ObservableLogsApi { /** */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.logFileListHandler(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.logFileListHandlerWithHttpInfo(rsp))); @@ -41886,47 +26122,19 @@ export class ObservableNetworkingApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -41967,47 +26175,19 @@ 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. */ public createIPAddressWithHttpInfo(body: V1IPAddress, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createIPAddressWithHttpInfo(rsp))); @@ -42035,47 +26215,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createIngressClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createIngressClassWithHttpInfo(rsp))); @@ -42104,47 +26256,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedIngress(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedIngressWithHttpInfo(rsp))); @@ -42174,47 +26298,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedNetworkPolicy(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedNetworkPolicyWithHttpInfo(rsp))); @@ -42243,47 +26339,19 @@ 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. */ public createServiceCIDRWithHttpInfo(body: V1ServiceCIDR, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createServiceCIDR(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createServiceCIDRWithHttpInfo(rsp))); @@ -42321,47 +26389,19 @@ export class ObservableNetworkingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionIPAddressWithHttpInfo(rsp))); @@ -42409,47 +26449,19 @@ export class ObservableNetworkingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionIngressClassWithHttpInfo(rsp))); @@ -42498,47 +26510,19 @@ export class ObservableNetworkingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedIngressWithHttpInfo(rsp))); @@ -42588,47 +26572,19 @@ export class ObservableNetworkingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedNetworkPolicyWithHttpInfo(rsp))); @@ -42677,47 +26633,19 @@ export class ObservableNetworkingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionServiceCIDRWithHttpInfo(rsp))); @@ -42758,47 +26686,19 @@ export class ObservableNetworkingV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteIPAddressWithHttpInfo(rsp))); @@ -42832,47 +26732,19 @@ export class ObservableNetworkingV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteIngressClassWithHttpInfo(rsp))); @@ -42907,47 +26779,19 @@ export class ObservableNetworkingV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedIngressWithHttpInfo(rsp))); @@ -42983,47 +26827,19 @@ export class ObservableNetworkingV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedNetworkPolicyWithHttpInfo(rsp))); @@ -43058,47 +26874,19 @@ export class ObservableNetworkingV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteServiceCIDRWithHttpInfo(rsp))); @@ -43124,47 +26912,19 @@ export class ObservableNetworkingV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -43193,47 +26953,19 @@ export class ObservableNetworkingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listIPAddressWithHttpInfo(rsp))); @@ -43273,47 +27005,19 @@ export class ObservableNetworkingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listIngressClassWithHttpInfo(rsp))); @@ -43353,47 +27057,19 @@ export class ObservableNetworkingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listIngressForAllNamespacesWithHttpInfo(rsp))); @@ -43434,47 +27110,19 @@ export class ObservableNetworkingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedIngressWithHttpInfo(rsp))); @@ -43516,47 +27164,19 @@ export class ObservableNetworkingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedNetworkPolicyWithHttpInfo(rsp))); @@ -43597,47 +27217,19 @@ export class ObservableNetworkingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNetworkPolicyForAllNamespacesWithHttpInfo(rsp))); @@ -43677,47 +27269,19 @@ export class ObservableNetworkingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listServiceCIDRWithHttpInfo(rsp))); @@ -43753,47 +27317,19 @@ export class ObservableNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchIPAddressWithHttpInfo(rsp))); @@ -43825,47 +27361,19 @@ export class ObservableNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchIngressClassWithHttpInfo(rsp))); @@ -43898,47 +27406,19 @@ export class ObservableNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedIngressWithHttpInfo(rsp))); @@ -43972,47 +27452,19 @@ export class ObservableNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedIngressStatusWithHttpInfo(rsp))); @@ -44046,47 +27498,19 @@ export class ObservableNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedNetworkPolicyWithHttpInfo(rsp))); @@ -44119,47 +27543,19 @@ export class ObservableNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchServiceCIDRWithHttpInfo(rsp))); @@ -44191,47 +27587,19 @@ export class ObservableNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchServiceCIDRStatusWithHttpInfo(rsp))); @@ -44258,47 +27626,19 @@ export class ObservableNetworkingV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readIPAddress(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readIPAddressWithHttpInfo(rsp))); @@ -44320,47 +27660,19 @@ export class ObservableNetworkingV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readIngressClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readIngressClassWithHttpInfo(rsp))); @@ -44383,47 +27695,19 @@ export class ObservableNetworkingV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedIngress(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedIngressWithHttpInfo(rsp))); @@ -44447,47 +27731,19 @@ export class ObservableNetworkingV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedIngressStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedIngressStatusWithHttpInfo(rsp))); @@ -44511,47 +27767,19 @@ export class ObservableNetworkingV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedNetworkPolicy(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedNetworkPolicyWithHttpInfo(rsp))); @@ -44574,47 +27802,19 @@ export class ObservableNetworkingV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readServiceCIDR(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readServiceCIDRWithHttpInfo(rsp))); @@ -44636,47 +27836,19 @@ export class ObservableNetworkingV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readServiceCIDRStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readServiceCIDRStatusWithHttpInfo(rsp))); @@ -44702,47 +27874,19 @@ 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. */ public replaceIPAddressWithHttpInfo(name: string, body: V1IPAddress, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceIPAddressWithHttpInfo(rsp))); @@ -44772,47 +27916,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceIngressClassWithHttpInfo(rsp))); @@ -44843,47 +27959,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedIngressWithHttpInfo(rsp))); @@ -44915,47 +28003,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedIngressStatusWithHttpInfo(rsp))); @@ -44987,47 +28047,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedNetworkPolicyWithHttpInfo(rsp))); @@ -45058,47 +28090,19 @@ 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. */ public replaceServiceCIDRWithHttpInfo(name: string, body: V1ServiceCIDR, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceServiceCIDRWithHttpInfo(rsp))); @@ -45128,47 +28132,19 @@ 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. */ public replaceServiceCIDRStatusWithHttpInfo(name: string, body: V1ServiceCIDR, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceServiceCIDRStatusWithHttpInfo(rsp))); @@ -45215,47 +28191,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createIPAddressWithHttpInfo(rsp))); @@ -45283,47 +28231,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createServiceCIDR(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createServiceCIDRWithHttpInfo(rsp))); @@ -45361,47 +28281,19 @@ export class ObservableNetworkingV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionIPAddressWithHttpInfo(rsp))); @@ -45449,47 +28341,19 @@ export class ObservableNetworkingV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionServiceCIDRWithHttpInfo(rsp))); @@ -45530,47 +28394,19 @@ export class ObservableNetworkingV1beta1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteIPAddressWithHttpInfo(rsp))); @@ -45604,47 +28440,19 @@ export class ObservableNetworkingV1beta1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteServiceCIDRWithHttpInfo(rsp))); @@ -45670,47 +28478,19 @@ export class ObservableNetworkingV1beta1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -45739,47 +28519,19 @@ export class ObservableNetworkingV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listIPAddressWithHttpInfo(rsp))); @@ -45819,47 +28571,19 @@ export class ObservableNetworkingV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listServiceCIDRWithHttpInfo(rsp))); @@ -45895,47 +28619,19 @@ export class ObservableNetworkingV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchIPAddressWithHttpInfo(rsp))); @@ -45967,47 +28663,19 @@ export class ObservableNetworkingV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchServiceCIDRWithHttpInfo(rsp))); @@ -46039,47 +28707,19 @@ export class ObservableNetworkingV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchServiceCIDRStatusWithHttpInfo(rsp))); @@ -46106,47 +28746,19 @@ export class ObservableNetworkingV1beta1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readIPAddress(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readIPAddressWithHttpInfo(rsp))); @@ -46168,47 +28780,19 @@ export class ObservableNetworkingV1beta1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readServiceCIDR(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readServiceCIDRWithHttpInfo(rsp))); @@ -46230,47 +28814,19 @@ export class ObservableNetworkingV1beta1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readServiceCIDRStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readServiceCIDRStatusWithHttpInfo(rsp))); @@ -46296,47 +28852,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceIPAddressWithHttpInfo(rsp))); @@ -46366,47 +28894,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceServiceCIDRWithHttpInfo(rsp))); @@ -46436,47 +28936,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceServiceCIDRStatusWithHttpInfo(rsp))); @@ -46518,47 +28990,19 @@ export class ObservableNodeApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -46599,47 +29043,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createRuntimeClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createRuntimeClassWithHttpInfo(rsp))); @@ -46677,47 +29093,19 @@ export class ObservableNodeV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionRuntimeClassWithHttpInfo(rsp))); @@ -46758,47 +29146,19 @@ export class ObservableNodeV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteRuntimeClassWithHttpInfo(rsp))); @@ -46824,47 +29184,19 @@ export class ObservableNodeV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -46893,47 +29225,19 @@ export class ObservableNodeV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRuntimeClassWithHttpInfo(rsp))); @@ -46969,47 +29273,19 @@ export class ObservableNodeV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchRuntimeClassWithHttpInfo(rsp))); @@ -47036,47 +29312,19 @@ export class ObservableNodeV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readRuntimeClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readRuntimeClassWithHttpInfo(rsp))); @@ -47102,47 +29350,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceRuntimeClassWithHttpInfo(rsp))); @@ -47184,47 +29404,19 @@ export class ObservableOpenidApi { * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getServiceAccountIssuerOpenIDKeyset(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getServiceAccountIssuerOpenIDKeysetWithHttpInfo(rsp))); @@ -47260,47 +29452,19 @@ export class ObservablePolicyApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -47342,47 +29506,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedPodDisruptionBudget(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); @@ -47422,47 +29558,19 @@ export class ObservablePolicyV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); @@ -47505,47 +29613,19 @@ export class ObservablePolicyV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); @@ -47572,47 +29652,19 @@ export class ObservablePolicyV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -47642,47 +29694,19 @@ export class ObservablePolicyV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); @@ -47723,47 +29747,19 @@ export class ObservablePolicyV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(rsp))); @@ -47800,47 +29796,19 @@ export class ObservablePolicyV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); @@ -47874,47 +29842,19 @@ export class ObservablePolicyV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(rsp))); @@ -47943,47 +29883,19 @@ export class ObservablePolicyV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedPodDisruptionBudget(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); @@ -48007,47 +29919,19 @@ export class ObservablePolicyV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(rsp))); @@ -48075,47 +29959,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); @@ -48147,47 +30003,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(rsp))); @@ -48230,47 +30058,19 @@ export class ObservableRbacAuthorizationApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -48311,47 +30111,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createClusterRole(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterRoleWithHttpInfo(rsp))); @@ -48379,47 +30151,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createClusterRoleBinding(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterRoleBindingWithHttpInfo(rsp))); @@ -48448,47 +30192,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedRoleWithHttpInfo(rsp))); @@ -48518,47 +30234,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedRoleBindingWithHttpInfo(rsp))); @@ -48590,47 +30278,19 @@ export class ObservableRbacAuthorizationV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterRoleWithHttpInfo(rsp))); @@ -48664,47 +30324,19 @@ export class ObservableRbacAuthorizationV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterRoleBindingWithHttpInfo(rsp))); @@ -48745,47 +30377,19 @@ export class ObservableRbacAuthorizationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterRoleWithHttpInfo(rsp))); @@ -48833,47 +30437,19 @@ export class ObservableRbacAuthorizationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterRoleBindingWithHttpInfo(rsp))); @@ -48922,47 +30498,19 @@ export class ObservableRbacAuthorizationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedRoleWithHttpInfo(rsp))); @@ -49012,47 +30560,19 @@ export class ObservableRbacAuthorizationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedRoleBindingWithHttpInfo(rsp))); @@ -49095,47 +30615,19 @@ export class ObservableRbacAuthorizationV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedRoleWithHttpInfo(rsp))); @@ -49171,47 +30663,19 @@ export class ObservableRbacAuthorizationV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedRoleBindingWithHttpInfo(rsp))); @@ -49238,47 +30702,19 @@ export class ObservableRbacAuthorizationV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -49307,47 +30743,19 @@ export class ObservableRbacAuthorizationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterRoleWithHttpInfo(rsp))); @@ -49387,47 +30795,19 @@ export class ObservableRbacAuthorizationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterRoleBindingWithHttpInfo(rsp))); @@ -49468,47 +30848,19 @@ export class ObservableRbacAuthorizationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedRoleWithHttpInfo(rsp))); @@ -49550,47 +30902,19 @@ export class ObservableRbacAuthorizationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedRoleBindingWithHttpInfo(rsp))); @@ -49631,47 +30955,19 @@ export class ObservableRbacAuthorizationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRoleBindingForAllNamespacesWithHttpInfo(rsp))); @@ -49711,47 +31007,19 @@ export class ObservableRbacAuthorizationV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRoleForAllNamespacesWithHttpInfo(rsp))); @@ -49787,47 +31055,19 @@ export class ObservableRbacAuthorizationV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchClusterRole(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterRoleWithHttpInfo(rsp))); @@ -49859,47 +31099,19 @@ export class ObservableRbacAuthorizationV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterRoleBindingWithHttpInfo(rsp))); @@ -49932,47 +31144,19 @@ export class ObservableRbacAuthorizationV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedRoleWithHttpInfo(rsp))); @@ -50006,47 +31190,19 @@ export class ObservableRbacAuthorizationV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedRoleBindingWithHttpInfo(rsp))); @@ -50074,47 +31230,19 @@ export class ObservableRbacAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readClusterRole(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterRoleWithHttpInfo(rsp))); @@ -50136,47 +31264,19 @@ export class ObservableRbacAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readClusterRoleBinding(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterRoleBindingWithHttpInfo(rsp))); @@ -50199,47 +31299,19 @@ export class ObservableRbacAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedRole(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedRoleWithHttpInfo(rsp))); @@ -50263,47 +31335,19 @@ export class ObservableRbacAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedRoleBinding(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedRoleBindingWithHttpInfo(rsp))); @@ -50330,47 +31374,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceClusterRole(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterRoleWithHttpInfo(rsp))); @@ -50400,47 +31416,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterRoleBindingWithHttpInfo(rsp))); @@ -50471,47 +31459,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedRoleWithHttpInfo(rsp))); @@ -50543,47 +31503,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedRoleBindingWithHttpInfo(rsp))); @@ -50626,47 +31558,19 @@ export class ObservableResourceApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -50707,47 +31611,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createDeviceClassWithHttpInfo(rsp))); @@ -50775,47 +31651,19 @@ 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. */ public createDeviceTaintRuleWithHttpInfo(body: V1alpha3DeviceTaintRule, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createDeviceTaintRule(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createDeviceTaintRuleWithHttpInfo(rsp))); @@ -50844,47 +31692,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedResourceClaimWithHttpInfo(rsp))); @@ -50914,47 +31734,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -50983,47 +31775,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createResourceSliceWithHttpInfo(rsp))); @@ -51061,47 +31825,19 @@ export class ObservableResourceV1alpha3Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionDeviceClassWithHttpInfo(rsp))); @@ -51149,47 +31885,19 @@ export class ObservableResourceV1alpha3Api { * @param [body] */ public deleteCollectionDeviceTaintRuleWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.deleteCollectionDeviceTaintRule(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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionDeviceTaintRuleWithHttpInfo(rsp))); @@ -51238,47 +31946,19 @@ export class ObservableResourceV1alpha3Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedResourceClaimWithHttpInfo(rsp))); @@ -51328,47 +32008,19 @@ export class ObservableResourceV1alpha3Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -51417,47 +32069,19 @@ export class ObservableResourceV1alpha3Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionResourceSliceWithHttpInfo(rsp))); @@ -51498,47 +32122,19 @@ export class ObservableResourceV1alpha3Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteDeviceClassWithHttpInfo(rsp))); @@ -51572,47 +32168,19 @@ export class ObservableResourceV1alpha3Api { * @param [body] */ public deleteDeviceTaintRuleWithHttpInfo(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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.deleteDeviceTaintRule(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteDeviceTaintRuleWithHttpInfo(rsp))); @@ -51647,47 +32215,19 @@ export class ObservableResourceV1alpha3Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedResourceClaimWithHttpInfo(rsp))); @@ -51723,47 +32263,19 @@ export class ObservableResourceV1alpha3Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -51798,47 +32310,19 @@ export class ObservableResourceV1alpha3Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteResourceSliceWithHttpInfo(rsp))); @@ -51864,47 +32348,19 @@ export class ObservableResourceV1alpha3Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -51933,47 +32389,19 @@ export class ObservableResourceV1alpha3Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listDeviceClassWithHttpInfo(rsp))); @@ -52013,47 +32441,19 @@ export class ObservableResourceV1alpha3Api { * @param [watch] Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ public listDeviceTaintRuleWithHttpInfo(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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.listDeviceTaintRule(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listDeviceTaintRuleWithHttpInfo(rsp))); @@ -52094,47 +32494,19 @@ export class ObservableResourceV1alpha3Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedResourceClaimWithHttpInfo(rsp))); @@ -52176,47 +32548,19 @@ export class ObservableResourceV1alpha3Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -52257,47 +32601,19 @@ export class ObservableResourceV1alpha3Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceClaimForAllNamespacesWithHttpInfo(rsp))); @@ -52337,47 +32653,19 @@ export class ObservableResourceV1alpha3Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceClaimTemplateForAllNamespacesWithHttpInfo(rsp))); @@ -52417,47 +32705,19 @@ export class ObservableResourceV1alpha3Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceSliceWithHttpInfo(rsp))); @@ -52493,47 +32753,19 @@ export class ObservableResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchDeviceClassWithHttpInfo(rsp))); @@ -52565,47 +32797,19 @@ export class ObservableResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ public patchDeviceTaintRuleWithHttpInfo(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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchDeviceTaintRule(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchDeviceTaintRuleWithHttpInfo(rsp))); @@ -52638,47 +32842,19 @@ export class ObservableResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimWithHttpInfo(rsp))); @@ -52712,47 +32888,19 @@ export class ObservableResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -52786,47 +32934,19 @@ export class ObservableResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -52859,47 +32979,19 @@ export class ObservableResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchResourceSliceWithHttpInfo(rsp))); @@ -52926,47 +33018,19 @@ export class ObservableResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readDeviceClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readDeviceClassWithHttpInfo(rsp))); @@ -52988,47 +33052,19 @@ export class ObservableResourceV1alpha3Api { * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ public readDeviceTaintRuleWithHttpInfo(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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readDeviceTaintRule(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readDeviceTaintRuleWithHttpInfo(rsp))); @@ -53051,47 +33087,19 @@ export class ObservableResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedResourceClaim(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimWithHttpInfo(rsp))); @@ -53115,47 +33123,19 @@ export class ObservableResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedResourceClaimStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -53179,47 +33159,19 @@ export class ObservableResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedResourceClaimTemplate(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -53242,47 +33194,19 @@ export class ObservableResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readResourceSlice(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readResourceSliceWithHttpInfo(rsp))); @@ -53308,47 +33232,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceDeviceClassWithHttpInfo(rsp))); @@ -53378,47 +33274,19 @@ 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. */ public replaceDeviceTaintRuleWithHttpInfo(name: string, body: V1alpha3DeviceTaintRule, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceDeviceTaintRule(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceDeviceTaintRuleWithHttpInfo(rsp))); @@ -53449,47 +33317,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimWithHttpInfo(rsp))); @@ -53521,47 +33361,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -53593,47 +33405,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -53664,47 +33448,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceResourceSliceWithHttpInfo(rsp))); @@ -53751,47 +33507,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createDeviceClassWithHttpInfo(rsp))); @@ -53820,47 +33548,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedResourceClaimWithHttpInfo(rsp))); @@ -53890,47 +33590,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -53959,47 +33631,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createResourceSliceWithHttpInfo(rsp))); @@ -54037,47 +33681,19 @@ export class ObservableResourceV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionDeviceClassWithHttpInfo(rsp))); @@ -54126,47 +33742,19 @@ export class ObservableResourceV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedResourceClaimWithHttpInfo(rsp))); @@ -54216,47 +33804,19 @@ export class ObservableResourceV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -54305,47 +33865,19 @@ export class ObservableResourceV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionResourceSliceWithHttpInfo(rsp))); @@ -54386,47 +33918,19 @@ export class ObservableResourceV1beta1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteDeviceClassWithHttpInfo(rsp))); @@ -54461,47 +33965,19 @@ export class ObservableResourceV1beta1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedResourceClaimWithHttpInfo(rsp))); @@ -54537,47 +34013,19 @@ export class ObservableResourceV1beta1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -54612,47 +34060,19 @@ export class ObservableResourceV1beta1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteResourceSliceWithHttpInfo(rsp))); @@ -54678,47 +34098,19 @@ export class ObservableResourceV1beta1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -54747,47 +34139,19 @@ export class ObservableResourceV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listDeviceClassWithHttpInfo(rsp))); @@ -54828,47 +34192,19 @@ export class ObservableResourceV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedResourceClaimWithHttpInfo(rsp))); @@ -54910,47 +34246,19 @@ export class ObservableResourceV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -54991,47 +34299,19 @@ export class ObservableResourceV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceClaimForAllNamespacesWithHttpInfo(rsp))); @@ -55071,47 +34351,19 @@ export class ObservableResourceV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceClaimTemplateForAllNamespacesWithHttpInfo(rsp))); @@ -55151,47 +34403,19 @@ export class ObservableResourceV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceSliceWithHttpInfo(rsp))); @@ -55227,47 +34451,19 @@ export class ObservableResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchDeviceClassWithHttpInfo(rsp))); @@ -55300,47 +34496,19 @@ export class ObservableResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimWithHttpInfo(rsp))); @@ -55374,47 +34542,19 @@ export class ObservableResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -55448,47 +34588,19 @@ export class ObservableResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -55521,47 +34633,19 @@ export class ObservableResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchResourceSliceWithHttpInfo(rsp))); @@ -55588,47 +34672,19 @@ export class ObservableResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readDeviceClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readDeviceClassWithHttpInfo(rsp))); @@ -55651,47 +34707,19 @@ export class ObservableResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedResourceClaim(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimWithHttpInfo(rsp))); @@ -55715,47 +34743,19 @@ export class ObservableResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedResourceClaimStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -55779,47 +34779,19 @@ export class ObservableResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedResourceClaimTemplate(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -55842,47 +34814,19 @@ export class ObservableResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readResourceSlice(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readResourceSliceWithHttpInfo(rsp))); @@ -55908,47 +34852,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceDeviceClassWithHttpInfo(rsp))); @@ -55979,47 +34895,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimWithHttpInfo(rsp))); @@ -56051,47 +34939,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -56123,47 +34983,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -56194,47 +35026,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceResourceSliceWithHttpInfo(rsp))); @@ -56281,47 +35085,19 @@ export class ObservableResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2DeviceClass, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createDeviceClassWithHttpInfo(rsp))); @@ -56350,47 +35126,19 @@ export class ObservableResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaim, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedResourceClaimWithHttpInfo(rsp))); @@ -56420,47 +35168,19 @@ export class ObservableResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaimTemplate, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -56489,47 +35209,19 @@ export class ObservableResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceSlice, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createResourceSliceWithHttpInfo(rsp))); @@ -56567,47 +35259,19 @@ export class ObservableResourceV1beta2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionDeviceClassWithHttpInfo(rsp))); @@ -56656,47 +35320,19 @@ export class ObservableResourceV1beta2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedResourceClaimWithHttpInfo(rsp))); @@ -56746,47 +35382,19 @@ export class ObservableResourceV1beta2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -56835,47 +35443,19 @@ export class ObservableResourceV1beta2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionResourceSliceWithHttpInfo(rsp))); @@ -56916,47 +35496,19 @@ export class ObservableResourceV1beta2Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteDeviceClassWithHttpInfo(rsp))); @@ -56991,47 +35543,19 @@ export class ObservableResourceV1beta2Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedResourceClaimWithHttpInfo(rsp))); @@ -57067,47 +35591,19 @@ export class ObservableResourceV1beta2Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -57142,47 +35638,19 @@ export class ObservableResourceV1beta2Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteResourceSliceWithHttpInfo(rsp))); @@ -57208,47 +35676,19 @@ export class ObservableResourceV1beta2Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -57277,47 +35717,19 @@ export class ObservableResourceV1beta2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listDeviceClassWithHttpInfo(rsp))); @@ -57358,47 +35770,19 @@ export class ObservableResourceV1beta2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedResourceClaimWithHttpInfo(rsp))); @@ -57440,47 +35824,19 @@ export class ObservableResourceV1beta2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -57521,47 +35877,19 @@ export class ObservableResourceV1beta2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceClaimForAllNamespacesWithHttpInfo(rsp))); @@ -57601,47 +35929,19 @@ export class ObservableResourceV1beta2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceClaimTemplateForAllNamespacesWithHttpInfo(rsp))); @@ -57681,47 +35981,19 @@ export class ObservableResourceV1beta2Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceSliceWithHttpInfo(rsp))); @@ -57757,47 +36029,19 @@ export class ObservableResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchDeviceClassWithHttpInfo(rsp))); @@ -57830,47 +36074,19 @@ export class ObservableResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimWithHttpInfo(rsp))); @@ -57904,47 +36120,19 @@ export class ObservableResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -57978,47 +36166,19 @@ export class ObservableResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -58051,47 +36211,19 @@ export class ObservableResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchResourceSliceWithHttpInfo(rsp))); @@ -58118,47 +36250,19 @@ export class ObservableResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readDeviceClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readDeviceClassWithHttpInfo(rsp))); @@ -58181,47 +36285,19 @@ export class ObservableResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedResourceClaim(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimWithHttpInfo(rsp))); @@ -58245,47 +36321,19 @@ export class ObservableResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedResourceClaimStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -58309,47 +36357,19 @@ export class ObservableResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedResourceClaimTemplate(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -58372,47 +36392,19 @@ export class ObservableResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readResourceSlice(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readResourceSliceWithHttpInfo(rsp))); @@ -58438,47 +36430,19 @@ export class ObservableResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2DeviceClass, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceDeviceClassWithHttpInfo(rsp))); @@ -58509,47 +36473,19 @@ export class ObservableResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaim, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimWithHttpInfo(rsp))); @@ -58581,47 +36517,19 @@ export class ObservableResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaim, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -58653,47 +36561,19 @@ export class ObservableResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaimTemplate, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -58724,47 +36604,19 @@ export class ObservableResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceSlice, 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceResourceSliceWithHttpInfo(rsp))); @@ -58806,47 +36658,19 @@ export class ObservableSchedulingApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -58887,47 +36711,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createPriorityClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPriorityClassWithHttpInfo(rsp))); @@ -58965,47 +36761,19 @@ export class ObservableSchedulingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPriorityClassWithHttpInfo(rsp))); @@ -59046,47 +36814,19 @@ export class ObservableSchedulingV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePriorityClassWithHttpInfo(rsp))); @@ -59112,47 +36852,19 @@ export class ObservableSchedulingV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -59181,47 +36893,19 @@ export class ObservableSchedulingV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPriorityClassWithHttpInfo(rsp))); @@ -59257,47 +36941,19 @@ export class ObservableSchedulingV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchPriorityClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPriorityClassWithHttpInfo(rsp))); @@ -59324,47 +36980,19 @@ export class ObservableSchedulingV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readPriorityClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPriorityClassWithHttpInfo(rsp))); @@ -59390,47 +37018,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replacePriorityClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePriorityClassWithHttpInfo(rsp))); @@ -59472,47 +37072,19 @@ export class ObservableStorageApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -59553,47 +37125,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createCSIDriver(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCSIDriverWithHttpInfo(rsp))); @@ -59621,47 +37165,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createCSINode(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCSINodeWithHttpInfo(rsp))); @@ -59690,47 +37206,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createNamespacedCSIStorageCapacity(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCSIStorageCapacityWithHttpInfo(rsp))); @@ -59759,47 +37247,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createStorageClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createStorageClassWithHttpInfo(rsp))); @@ -59827,47 +37287,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createVolumeAttachment(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createVolumeAttachmentWithHttpInfo(rsp))); @@ -59898,47 +37330,19 @@ export class ObservableStorageV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCSIDriverWithHttpInfo(rsp))); @@ -59972,47 +37376,19 @@ export class ObservableStorageV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCSINodeWithHttpInfo(rsp))); @@ -60053,47 +37429,19 @@ export class ObservableStorageV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCSIDriverWithHttpInfo(rsp))); @@ -60141,47 +37489,19 @@ export class ObservableStorageV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCSINodeWithHttpInfo(rsp))); @@ -60230,47 +37550,19 @@ export class ObservableStorageV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(rsp))); @@ -60319,47 +37611,19 @@ export class ObservableStorageV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionStorageClassWithHttpInfo(rsp))); @@ -60407,47 +37671,19 @@ export class ObservableStorageV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionVolumeAttachmentWithHttpInfo(rsp))); @@ -60489,47 +37725,19 @@ export class ObservableStorageV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCSIStorageCapacityWithHttpInfo(rsp))); @@ -60564,47 +37772,19 @@ export class ObservableStorageV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteStorageClassWithHttpInfo(rsp))); @@ -60638,47 +37818,19 @@ export class ObservableStorageV1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteVolumeAttachmentWithHttpInfo(rsp))); @@ -60704,47 +37856,19 @@ export class ObservableStorageV1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -60773,47 +37897,19 @@ export class ObservableStorageV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCSIDriverWithHttpInfo(rsp))); @@ -60853,47 +37949,19 @@ export class ObservableStorageV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCSINodeWithHttpInfo(rsp))); @@ -60933,47 +38001,19 @@ export class ObservableStorageV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCSIStorageCapacityForAllNamespacesWithHttpInfo(rsp))); @@ -61014,47 +38054,19 @@ export class ObservableStorageV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCSIStorageCapacityWithHttpInfo(rsp))); @@ -61095,47 +38107,19 @@ export class ObservableStorageV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listStorageClassWithHttpInfo(rsp))); @@ -61175,47 +38159,19 @@ export class ObservableStorageV1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listVolumeAttachmentWithHttpInfo(rsp))); @@ -61251,47 +38207,19 @@ export class ObservableStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchCSIDriver(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCSIDriverWithHttpInfo(rsp))); @@ -61323,47 +38251,19 @@ export class ObservableStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchCSINode(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCSINodeWithHttpInfo(rsp))); @@ -61396,47 +38296,19 @@ export class ObservableStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCSIStorageCapacityWithHttpInfo(rsp))); @@ -61469,47 +38341,19 @@ export class ObservableStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchStorageClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageClassWithHttpInfo(rsp))); @@ -61541,47 +38385,19 @@ export class ObservableStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchVolumeAttachmentWithHttpInfo(rsp))); @@ -61613,47 +38429,19 @@ export class ObservableStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchVolumeAttachmentStatusWithHttpInfo(rsp))); @@ -61680,47 +38468,19 @@ export class ObservableStorageV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readCSIDriver(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCSIDriverWithHttpInfo(rsp))); @@ -61742,47 +38502,19 @@ export class ObservableStorageV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readCSINode(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCSINodeWithHttpInfo(rsp))); @@ -61805,47 +38537,19 @@ export class ObservableStorageV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readNamespacedCSIStorageCapacity(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCSIStorageCapacityWithHttpInfo(rsp))); @@ -61868,47 +38572,19 @@ export class ObservableStorageV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readStorageClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageClassWithHttpInfo(rsp))); @@ -61930,47 +38606,19 @@ export class ObservableStorageV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readVolumeAttachment(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readVolumeAttachmentWithHttpInfo(rsp))); @@ -61992,47 +38640,19 @@ export class ObservableStorageV1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readVolumeAttachmentStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readVolumeAttachmentStatusWithHttpInfo(rsp))); @@ -62058,47 +38678,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceCSIDriver(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCSIDriverWithHttpInfo(rsp))); @@ -62128,47 +38720,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceCSINode(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCSINodeWithHttpInfo(rsp))); @@ -62199,47 +38763,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCSIStorageCapacityWithHttpInfo(rsp))); @@ -62270,47 +38806,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceStorageClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageClassWithHttpInfo(rsp))); @@ -62340,47 +38848,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceVolumeAttachmentWithHttpInfo(rsp))); @@ -62410,47 +38890,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceVolumeAttachmentStatusWithHttpInfo(rsp))); @@ -62497,47 +38949,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createVolumeAttributesClassWithHttpInfo(rsp))); @@ -62575,47 +38999,19 @@ export class ObservableStorageV1alpha1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionVolumeAttributesClassWithHttpInfo(rsp))); @@ -62656,47 +39052,19 @@ export class ObservableStorageV1alpha1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteVolumeAttributesClassWithHttpInfo(rsp))); @@ -62722,47 +39090,19 @@ export class ObservableStorageV1alpha1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -62791,47 +39131,19 @@ export class ObservableStorageV1alpha1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listVolumeAttributesClassWithHttpInfo(rsp))); @@ -62867,47 +39179,19 @@ export class ObservableStorageV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchVolumeAttributesClassWithHttpInfo(rsp))); @@ -62934,47 +39218,19 @@ export class ObservableStorageV1alpha1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readVolumeAttributesClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readVolumeAttributesClassWithHttpInfo(rsp))); @@ -63000,47 +39256,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceVolumeAttributesClassWithHttpInfo(rsp))); @@ -63087,47 +39315,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createVolumeAttributesClassWithHttpInfo(rsp))); @@ -63165,47 +39365,19 @@ export class ObservableStorageV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionVolumeAttributesClassWithHttpInfo(rsp))); @@ -63246,47 +39418,19 @@ export class ObservableStorageV1beta1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteVolumeAttributesClassWithHttpInfo(rsp))); @@ -63312,47 +39456,19 @@ export class ObservableStorageV1beta1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -63381,47 +39497,19 @@ export class ObservableStorageV1beta1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listVolumeAttributesClassWithHttpInfo(rsp))); @@ -63457,47 +39545,19 @@ export class ObservableStorageV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchVolumeAttributesClassWithHttpInfo(rsp))); @@ -63524,47 +39584,19 @@ export class ObservableStorageV1beta1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readVolumeAttributesClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readVolumeAttributesClassWithHttpInfo(rsp))); @@ -63590,47 +39622,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceVolumeAttributesClassWithHttpInfo(rsp))); @@ -63672,47 +39676,19 @@ export class ObservableStoragemigrationApi { * get information of a group */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -63753,47 +39729,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.createStorageVersionMigration(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createStorageVersionMigrationWithHttpInfo(rsp))); @@ -63831,47 +39779,19 @@ export class ObservableStoragemigrationV1alpha1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionStorageVersionMigrationWithHttpInfo(rsp))); @@ -63912,47 +39832,19 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [body] */ 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 _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteStorageVersionMigrationWithHttpInfo(rsp))); @@ -63978,47 +39870,19 @@ export class ObservableStoragemigrationV1alpha1Api { * get available resources */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -64047,47 +39911,19 @@ export class ObservableStoragemigrationV1alpha1Api { * @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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); 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 allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listStorageVersionMigrationWithHttpInfo(rsp))); @@ -64123,47 +39959,19 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageVersionMigrationWithHttpInfo(rsp))); @@ -64195,47 +40003,19 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.patchStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageVersionMigrationStatusWithHttpInfo(rsp))); @@ -64262,47 +40042,19 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readStorageVersionMigration(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageVersionMigrationWithHttpInfo(rsp))); @@ -64324,47 +40076,19 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [pretty] If \'true\', then 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?: ConfigurationOptions): Observable> { - let _config = this.configuration; - let allMiddleware: Middleware[] = []; - if (_options && _options.middleware){ - const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior - // call-time middleware provided - const calltimeMiddleware: Middleware[] = _options.middleware; - - switch(middlewareMergeStrategy){ - case 'append': - allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); - break; - case 'prepend': - allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) - break; - case 'replace': - allMiddleware = calltimeMiddleware - break; - default: - throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) - } - } - if (_options){ - _config = { - baseServer: _options.baseServer || this.configuration.baseServer, - httpApi: _options.httpApi || this.configuration.httpApi, - authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware - }; - } + const _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.readStorageVersionMigrationStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageVersionMigrationStatusWithHttpInfo(rsp))); @@ -64390,47 +40114,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageVersionMigrationWithHttpInfo(rsp))); @@ -64460,47 +40156,19 @@ 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. */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.replaceStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageVersionMigrationStatusWithHttpInfo(rsp))); @@ -64542,47 +40210,19 @@ export class ObservableVersionApi { * get the version information for this server */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getCode(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getCodeWithHttpInfo(rsp))); @@ -64618,47 +40258,19 @@ export class ObservableWellKnownApi { * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' */ 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 _config = mergeConfiguration(this.configuration, _options); const requestContextPromise = this.requestFactory.getServiceAccountIssuerOpenIDConfiguration(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of allMiddleware) { + for (const middleware of _config.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => _config.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of allMiddleware.reverse()) { + for (const middleware of _config.middleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(rsp))); diff --git a/src/gen/types/PromiseAPI.ts b/src/gen/types/PromiseAPI.ts index 654cc8ab1e..38aa29444a 100644 --- a/src/gen/types/PromiseAPI.ts +++ b/src/gen/types/PromiseAPI.ts @@ -1,5 +1,5 @@ import { ResponseContext, RequestContext, HttpFile, HttpInfo } from '../http/http.js'; -import { Configuration, ConfigurationOptions, PromiseConfigurationOptions } from '../configuration.js' +import { Configuration, PromiseConfigurationOptions, wrapOptions } from '../configuration.js' import { PromiseMiddleware, Middleware, PromiseMiddlewareWrapper } from '../middleware.js'; import { AdmissionregistrationV1ServiceReference } from '../models/AdmissionregistrationV1ServiceReference.js'; @@ -714,18 +714,7 @@ export class PromiseAdmissionregistrationApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -734,18 +723,7 @@ export class PromiseAdmissionregistrationApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -778,18 +756,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createMutatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -803,18 +770,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createMutatingWebhookConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -828,18 +784,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -853,18 +798,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -878,18 +812,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -903,18 +826,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -928,18 +840,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createValidatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -953,18 +854,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createValidatingWebhookConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -988,18 +878,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -1023,18 +902,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionMutatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -1058,18 +926,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -1093,18 +950,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -1128,18 +974,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -1163,18 +998,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -1198,18 +1022,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -1233,18 +1046,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionValidatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -1261,18 +1063,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1289,18 +1080,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteMutatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1317,18 +1097,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1345,18 +1114,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1373,18 +1131,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1401,18 +1148,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1429,18 +1165,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1457,18 +1182,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteValidatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1477,18 +1191,7 @@ export class PromiseAdmissionregistrationV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -1497,18 +1200,7 @@ export class PromiseAdmissionregistrationV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -1528,18 +1220,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listMutatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1559,18 +1240,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1590,18 +1260,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1621,18 +1280,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1652,18 +1300,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1683,18 +1320,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1714,18 +1340,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listValidatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1745,18 +1360,7 @@ export class PromiseAdmissionregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1772,18 +1376,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1799,18 +1392,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1826,18 +1408,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1853,18 +1424,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1880,18 +1440,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1907,18 +1456,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1934,18 +1472,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1961,18 +1488,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1988,18 +1504,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2015,18 +1520,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2037,18 +1531,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readMutatingWebhookConfigurationWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -2059,18 +1542,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readMutatingWebhookConfiguration(name, pretty, observableOptions); return result.toPromise(); } @@ -2081,18 +1553,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readValidatingAdmissionPolicyWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -2103,18 +1564,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readValidatingAdmissionPolicy(name, pretty, observableOptions); return result.toPromise(); } @@ -2125,18 +1575,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -2147,18 +1586,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readValidatingAdmissionPolicyBinding(name, pretty, observableOptions); return result.toPromise(); } @@ -2169,18 +1597,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -2191,18 +1608,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readValidatingAdmissionPolicyStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -2213,18 +1619,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readValidatingWebhookConfigurationWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -2235,18 +1630,7 @@ export class PromiseAdmissionregistrationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readValidatingWebhookConfiguration(name, pretty, observableOptions); return result.toPromise(); } @@ -2261,18 +1645,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2287,18 +1660,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2313,18 +1675,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2339,18 +1690,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2365,18 +1705,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2391,18 +1720,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2417,18 +1735,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2443,18 +1750,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2469,18 +1765,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2495,18 +1780,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2539,18 +1813,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createMutatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2564,18 +1827,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createMutatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2589,18 +1841,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createMutatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2614,18 +1855,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createMutatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2649,18 +1879,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -2684,18 +1903,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionMutatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -2719,18 +1927,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -2754,18 +1951,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionMutatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -2782,18 +1968,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteMutatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -2810,18 +1985,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteMutatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -2838,18 +2002,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -2866,18 +2019,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteMutatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -2886,18 +2028,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -2906,18 +2037,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -2937,18 +2057,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -2968,18 +2077,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listMutatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -2999,18 +2097,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -3030,18 +2117,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listMutatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -3057,18 +2133,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -3084,18 +2149,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -3111,18 +2165,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -3138,18 +2181,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -3160,18 +2192,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readMutatingAdmissionPolicyWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -3182,18 +2203,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readMutatingAdmissionPolicy(name, pretty, observableOptions); return result.toPromise(); } @@ -3204,18 +2214,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -3226,18 +2225,7 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readMutatingAdmissionPolicyBinding(name, pretty, observableOptions); return result.toPromise(); } @@ -3252,18 +2240,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3278,18 +2255,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3304,18 +2270,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3330,18 +2285,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3374,18 +2318,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3399,18 +2332,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3424,18 +2346,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3449,18 +2360,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3484,18 +2384,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3519,18 +2408,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3554,18 +2432,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3589,18 +2456,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3617,18 +2473,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -3645,18 +2490,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -3673,18 +2507,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -3701,18 +2524,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -3721,18 +2533,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -3741,18 +2542,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -3772,18 +2562,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -3803,18 +2582,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -3834,18 +2602,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -3865,18 +2622,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -3892,18 +2638,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -3919,18 +2654,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -3946,18 +2670,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -3973,18 +2686,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4000,18 +2702,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4027,18 +2718,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4049,18 +2729,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readValidatingAdmissionPolicyWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -4071,18 +2740,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readValidatingAdmissionPolicy(name, pretty, observableOptions); return result.toPromise(); } @@ -4093,18 +2751,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -4115,18 +2762,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readValidatingAdmissionPolicyBinding(name, pretty, observableOptions); return result.toPromise(); } @@ -4137,18 +2773,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -4159,18 +2784,7 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readValidatingAdmissionPolicyStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -4185,18 +2799,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -4211,18 +2814,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -4237,18 +2829,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -4263,18 +2844,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -4289,18 +2859,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -4315,18 +2874,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -4354,18 +2902,7 @@ export class PromiseApiextensionsApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -4374,18 +2911,7 @@ export class PromiseApiextensionsApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -4418,18 +2944,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createCustomResourceDefinitionWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -4443,18 +2958,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createCustomResourceDefinition(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -4478,18 +2982,7 @@ export class PromiseApiextensionsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -4513,18 +3006,7 @@ export class PromiseApiextensionsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionCustomResourceDefinition(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -4541,18 +3023,7 @@ export class PromiseApiextensionsV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteCustomResourceDefinitionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -4569,18 +3040,7 @@ export class PromiseApiextensionsV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteCustomResourceDefinition(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -4589,18 +3049,7 @@ export class PromiseApiextensionsV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -4609,18 +3058,7 @@ export class PromiseApiextensionsV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -4640,18 +3078,7 @@ export class PromiseApiextensionsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listCustomResourceDefinitionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4671,18 +3098,7 @@ export class PromiseApiextensionsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4698,18 +3114,7 @@ export class PromiseApiextensionsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4725,18 +3130,7 @@ export class PromiseApiextensionsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4752,18 +3146,7 @@ export class PromiseApiextensionsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4779,18 +3162,7 @@ export class PromiseApiextensionsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4801,18 +3173,7 @@ export class PromiseApiextensionsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readCustomResourceDefinitionWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -4823,18 +3184,7 @@ export class PromiseApiextensionsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readCustomResourceDefinition(name, pretty, observableOptions); return result.toPromise(); } @@ -4845,18 +3195,7 @@ export class PromiseApiextensionsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readCustomResourceDefinitionStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -4867,18 +3206,7 @@ export class PromiseApiextensionsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readCustomResourceDefinitionStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -4893,18 +3221,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -4919,18 +3236,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -4945,18 +3251,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -4971,18 +3266,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5010,18 +3294,7 @@ export class PromiseApiregistrationApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -5030,18 +3303,7 @@ export class PromiseApiregistrationApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -5074,18 +3336,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createAPIServiceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5099,18 +3350,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createAPIService(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5127,18 +3367,7 @@ export class PromiseApiregistrationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteAPIServiceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -5155,18 +3384,7 @@ export class PromiseApiregistrationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -5190,18 +3408,7 @@ export class PromiseApiregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -5225,18 +3432,7 @@ export class PromiseApiregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionAPIService(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -5245,18 +3441,7 @@ export class PromiseApiregistrationV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -5265,18 +3450,7 @@ export class PromiseApiregistrationV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -5296,18 +3470,7 @@ export class PromiseApiregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listAPIServiceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -5327,18 +3490,7 @@ export class PromiseApiregistrationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listAPIService(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -5354,18 +3506,7 @@ export class PromiseApiregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -5381,18 +3522,7 @@ export class PromiseApiregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchAPIService(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -5408,18 +3538,7 @@ export class PromiseApiregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -5435,18 +3554,7 @@ export class PromiseApiregistrationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchAPIServiceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -5457,18 +3565,7 @@ export class PromiseApiregistrationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readAPIServiceWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -5479,18 +3576,7 @@ export class PromiseApiregistrationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readAPIService(name, pretty, observableOptions); return result.toPromise(); } @@ -5501,18 +3587,7 @@ export class PromiseApiregistrationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readAPIServiceStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -5523,18 +3598,7 @@ export class PromiseApiregistrationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readAPIServiceStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -5549,18 +3613,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5575,18 +3628,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceAPIService(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5601,18 +3643,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5627,18 +3658,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceAPIServiceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5666,18 +3686,7 @@ export class PromiseApisApi { * get available API versions */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIVersionsWithHttpInfo(observableOptions); return result.toPromise(); } @@ -5686,18 +3695,7 @@ export class PromiseApisApi { * get available API versions */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIVersions(observableOptions); return result.toPromise(); } @@ -5725,18 +3723,7 @@ export class PromiseAppsApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -5745,18 +3732,7 @@ export class PromiseAppsApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -5790,18 +3766,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedControllerRevisionWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5816,18 +3781,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5842,18 +3796,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedDaemonSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5868,18 +3811,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5894,18 +3826,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5920,18 +3841,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5946,18 +3856,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedReplicaSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5972,18 +3871,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5998,18 +3886,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedStatefulSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6024,18 +3901,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6060,18 +3926,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -6096,18 +3951,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -6132,18 +3976,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -6168,18 +4001,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -6204,18 +4026,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -6240,18 +4051,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -6276,18 +4076,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -6312,18 +4101,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -6348,18 +4126,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -6384,18 +4151,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -6413,18 +4169,7 @@ export class PromiseAppsV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -6442,18 +4187,7 @@ export class PromiseAppsV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -6471,18 +4205,7 @@ export class PromiseAppsV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -6500,18 +4223,7 @@ export class PromiseAppsV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -6529,18 +4241,7 @@ export class PromiseAppsV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -6558,18 +4259,7 @@ export class PromiseAppsV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -6587,18 +4277,7 @@ export class PromiseAppsV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -6616,18 +4295,7 @@ export class PromiseAppsV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -6645,18 +4313,7 @@ export class PromiseAppsV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -6674,18 +4331,7 @@ export class PromiseAppsV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -6694,18 +4340,7 @@ export class PromiseAppsV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -6714,18 +4349,7 @@ export class PromiseAppsV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -6745,18 +4369,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6776,18 +4389,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6807,18 +4409,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6838,18 +4429,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6869,18 +4449,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6900,18 +4469,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6932,18 +4490,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6964,18 +4511,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6996,18 +4532,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7028,18 +4553,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7060,18 +4574,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7092,18 +4595,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7124,18 +4616,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7156,18 +4637,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7188,18 +4658,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7220,18 +4679,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7251,18 +4699,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7282,18 +4719,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7313,18 +4739,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7344,18 +4759,7 @@ export class PromiseAppsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7372,18 +4776,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7400,18 +4793,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7428,18 +4810,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7456,18 +4827,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7484,18 +4844,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7512,18 +4861,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7540,18 +4878,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7568,18 +4895,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7596,18 +4912,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7624,18 +4929,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7652,18 +4946,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7680,18 +4963,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7708,18 +4980,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7736,18 +4997,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7764,18 +5014,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7792,18 +5031,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7820,18 +5048,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7848,18 +5065,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7876,18 +5082,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7904,18 +5099,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7932,18 +5116,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7960,18 +5133,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7988,18 +5150,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -8016,18 +5167,7 @@ export class PromiseAppsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -8039,18 +5179,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8062,18 +5191,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedControllerRevision(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8085,18 +5203,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8108,18 +5215,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedDaemonSet(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8131,18 +5227,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedDaemonSetStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8154,18 +5239,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedDaemonSetStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8177,18 +5251,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8200,18 +5263,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedDeployment(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8223,18 +5275,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8246,18 +5287,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedDeploymentScale(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8269,18 +5299,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8292,18 +5311,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedDeploymentStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8315,18 +5323,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8338,18 +5335,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedReplicaSet(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8361,18 +5347,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedReplicaSetScaleWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8384,18 +5359,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedReplicaSetScale(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8407,18 +5371,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedReplicaSetStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8430,18 +5383,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedReplicaSetStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8453,18 +5395,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8476,18 +5407,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedStatefulSet(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8499,18 +5419,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedStatefulSetScaleWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8522,18 +5431,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedStatefulSetScale(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8545,18 +5443,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedStatefulSetStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8568,18 +5455,7 @@ export class PromiseAppsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedStatefulSetStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8595,18 +5471,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8622,18 +5487,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8649,18 +5503,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8676,18 +5519,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8703,18 +5535,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8730,18 +5551,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8757,18 +5567,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8784,18 +5583,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8811,18 +5599,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8838,18 +5615,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8865,18 +5631,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8892,18 +5647,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8919,18 +5663,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8946,18 +5679,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8973,18 +5695,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -9000,18 +5711,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -9027,18 +5727,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -9054,18 +5743,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -9081,18 +5759,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -9108,18 +5775,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -9135,18 +5791,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -9162,18 +5807,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -9189,18 +5823,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -9216,18 +5839,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -9255,18 +5867,7 @@ export class PromiseAuthenticationApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -9275,18 +5876,7 @@ export class PromiseAuthenticationApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -9319,18 +5909,7 @@ export class PromiseAuthenticationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createSelfSubjectReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -9344,18 +5923,7 @@ export class PromiseAuthenticationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -9369,18 +5937,7 @@ export class PromiseAuthenticationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createTokenReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -9394,18 +5951,7 @@ export class PromiseAuthenticationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createTokenReview(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -9414,18 +5960,7 @@ export class PromiseAuthenticationV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -9434,18 +5969,7 @@ export class PromiseAuthenticationV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -9473,18 +5997,7 @@ export class PromiseAuthorizationApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -9493,18 +6006,7 @@ export class PromiseAuthorizationApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -9538,18 +6040,7 @@ export class PromiseAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -9564,18 +6055,7 @@ export class PromiseAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -9589,18 +6069,7 @@ export class PromiseAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createSelfSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -9614,18 +6083,7 @@ export class PromiseAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createSelfSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -9639,18 +6097,7 @@ export class PromiseAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createSelfSubjectRulesReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -9664,18 +6111,7 @@ export class PromiseAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createSelfSubjectRulesReview(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -9689,18 +6125,7 @@ export class PromiseAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -9714,18 +6139,7 @@ export class PromiseAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -9734,18 +6148,7 @@ export class PromiseAuthorizationV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -9754,18 +6157,7 @@ export class PromiseAuthorizationV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -9793,18 +6185,7 @@ export class PromiseAutoscalingApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -9813,18 +6194,7 @@ export class PromiseAutoscalingApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -9858,18 +6228,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -9884,18 +6243,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -9920,18 +6268,7 @@ export class PromiseAutoscalingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -9956,18 +6293,7 @@ export class PromiseAutoscalingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -9985,18 +6311,7 @@ export class PromiseAutoscalingV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -10014,18 +6329,7 @@ export class PromiseAutoscalingV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -10034,18 +6338,7 @@ export class PromiseAutoscalingV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -10054,18 +6347,7 @@ export class PromiseAutoscalingV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -10085,18 +6367,7 @@ export class PromiseAutoscalingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -10116,18 +6387,7 @@ export class PromiseAutoscalingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -10148,18 +6408,7 @@ export class PromiseAutoscalingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -10180,18 +6429,7 @@ export class PromiseAutoscalingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -10208,18 +6446,7 @@ export class PromiseAutoscalingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -10236,18 +6463,7 @@ export class PromiseAutoscalingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -10264,18 +6480,7 @@ export class PromiseAutoscalingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -10292,18 +6497,7 @@ export class PromiseAutoscalingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -10315,18 +6509,7 @@ export class PromiseAutoscalingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -10338,18 +6521,7 @@ export class PromiseAutoscalingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -10361,18 +6533,7 @@ export class PromiseAutoscalingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -10384,18 +6545,7 @@ export class PromiseAutoscalingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -10411,18 +6561,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10438,18 +6577,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10465,18 +6593,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10492,18 +6609,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10537,18 +6643,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10563,18 +6658,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10599,18 +6683,7 @@ export class PromiseAutoscalingV2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -10635,18 +6708,7 @@ export class PromiseAutoscalingV2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -10664,18 +6726,7 @@ export class PromiseAutoscalingV2Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -10693,18 +6744,7 @@ export class PromiseAutoscalingV2Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -10713,18 +6753,7 @@ export class PromiseAutoscalingV2Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -10733,18 +6762,7 @@ export class PromiseAutoscalingV2Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -10764,18 +6782,7 @@ export class PromiseAutoscalingV2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -10795,18 +6802,7 @@ export class PromiseAutoscalingV2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -10827,18 +6823,7 @@ export class PromiseAutoscalingV2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -10859,18 +6844,7 @@ export class PromiseAutoscalingV2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -10887,18 +6861,7 @@ export class PromiseAutoscalingV2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -10915,18 +6878,7 @@ export class PromiseAutoscalingV2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -10943,18 +6895,7 @@ export class PromiseAutoscalingV2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -10971,18 +6912,7 @@ export class PromiseAutoscalingV2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -10994,18 +6924,7 @@ export class PromiseAutoscalingV2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -11017,18 +6936,7 @@ export class PromiseAutoscalingV2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -11040,18 +6948,7 @@ export class PromiseAutoscalingV2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -11063,18 +6960,7 @@ export class PromiseAutoscalingV2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -11090,18 +6976,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -11117,18 +6992,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -11144,18 +7008,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -11171,18 +7024,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -11210,18 +7052,7 @@ export class PromiseBatchApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -11230,18 +7061,7 @@ export class PromiseBatchApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -11275,18 +7095,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedCronJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -11301,18 +7110,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -11327,18 +7125,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -11353,18 +7140,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -11389,18 +7165,7 @@ export class PromiseBatchV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -11425,18 +7190,7 @@ export class PromiseBatchV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -11461,18 +7215,7 @@ export class PromiseBatchV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -11497,18 +7240,7 @@ export class PromiseBatchV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -11526,18 +7258,7 @@ export class PromiseBatchV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedCronJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11555,18 +7276,7 @@ export class PromiseBatchV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11584,18 +7294,7 @@ export class PromiseBatchV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11613,18 +7312,7 @@ export class PromiseBatchV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11633,18 +7321,7 @@ export class PromiseBatchV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -11653,18 +7330,7 @@ export class PromiseBatchV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -11684,18 +7350,7 @@ export class PromiseBatchV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11715,18 +7370,7 @@ export class PromiseBatchV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11746,18 +7390,7 @@ export class PromiseBatchV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11777,18 +7410,7 @@ export class PromiseBatchV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11809,18 +7431,7 @@ export class PromiseBatchV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11841,18 +7452,7 @@ export class PromiseBatchV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11873,18 +7473,7 @@ export class PromiseBatchV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11905,18 +7494,7 @@ export class PromiseBatchV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11933,18 +7511,7 @@ export class PromiseBatchV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -11961,18 +7528,7 @@ export class PromiseBatchV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -11989,18 +7545,7 @@ export class PromiseBatchV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12017,18 +7562,7 @@ export class PromiseBatchV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12045,18 +7579,7 @@ export class PromiseBatchV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12073,18 +7596,7 @@ export class PromiseBatchV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12101,18 +7613,7 @@ export class PromiseBatchV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12129,18 +7630,7 @@ export class PromiseBatchV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12152,18 +7642,7 @@ export class PromiseBatchV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedCronJobWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -12175,18 +7654,7 @@ export class PromiseBatchV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedCronJob(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -12198,18 +7666,7 @@ export class PromiseBatchV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedCronJobStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -12221,18 +7678,7 @@ export class PromiseBatchV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedCronJobStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -12244,18 +7690,7 @@ export class PromiseBatchV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedJobWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -12267,18 +7702,7 @@ export class PromiseBatchV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedJob(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -12290,18 +7714,7 @@ export class PromiseBatchV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedJobStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -12313,18 +7726,7 @@ export class PromiseBatchV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedJobStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -12340,18 +7742,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -12367,18 +7758,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -12394,18 +7774,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -12421,18 +7790,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -12448,18 +7806,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -12475,18 +7822,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -12502,18 +7838,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -12529,18 +7854,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -12568,18 +7882,7 @@ export class PromiseCertificatesApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -12588,18 +7891,7 @@ export class PromiseCertificatesApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -12632,18 +7924,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createCertificateSigningRequestWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -12657,18 +7938,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createCertificateSigningRequest(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -12685,18 +7955,7 @@ export class PromiseCertificatesV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteCertificateSigningRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -12713,18 +7972,7 @@ export class PromiseCertificatesV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -12748,18 +7996,7 @@ export class PromiseCertificatesV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -12783,18 +8020,7 @@ export class PromiseCertificatesV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionCertificateSigningRequest(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -12803,18 +8029,7 @@ export class PromiseCertificatesV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -12823,18 +8038,7 @@ export class PromiseCertificatesV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -12854,18 +8058,7 @@ export class PromiseCertificatesV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12885,18 +8078,7 @@ export class PromiseCertificatesV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12912,18 +8094,7 @@ export class PromiseCertificatesV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12939,18 +8110,7 @@ export class PromiseCertificatesV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12966,18 +8126,7 @@ export class PromiseCertificatesV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12993,18 +8142,7 @@ export class PromiseCertificatesV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13020,18 +8158,7 @@ export class PromiseCertificatesV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13047,18 +8174,7 @@ export class PromiseCertificatesV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13069,18 +8185,7 @@ export class PromiseCertificatesV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readCertificateSigningRequestWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -13091,18 +8196,7 @@ export class PromiseCertificatesV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readCertificateSigningRequest(name, pretty, observableOptions); return result.toPromise(); } @@ -13113,18 +8207,7 @@ export class PromiseCertificatesV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readCertificateSigningRequestApprovalWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -13135,18 +8218,7 @@ export class PromiseCertificatesV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readCertificateSigningRequestApproval(name, pretty, observableOptions); return result.toPromise(); } @@ -13157,18 +8229,7 @@ export class PromiseCertificatesV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readCertificateSigningRequestStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -13179,18 +8240,7 @@ export class PromiseCertificatesV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readCertificateSigningRequestStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -13205,18 +8255,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -13231,18 +8270,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -13257,18 +8285,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -13283,18 +8300,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -13309,18 +8315,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -13335,18 +8330,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -13379,18 +8363,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createClusterTrustBundleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -13404,18 +8377,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createClusterTrustBundle(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -13432,18 +8394,7 @@ export class PromiseCertificatesV1alpha1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteClusterTrustBundleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -13460,18 +8411,7 @@ export class PromiseCertificatesV1alpha1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteClusterTrustBundle(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -13495,18 +8435,7 @@ export class PromiseCertificatesV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -13530,18 +8459,7 @@ export class PromiseCertificatesV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionClusterTrustBundle(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -13550,18 +8468,7 @@ export class PromiseCertificatesV1alpha1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -13570,18 +8477,7 @@ export class PromiseCertificatesV1alpha1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -13601,18 +8497,7 @@ export class PromiseCertificatesV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -13632,18 +8517,7 @@ export class PromiseCertificatesV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listClusterTrustBundle(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -13659,18 +8533,7 @@ export class PromiseCertificatesV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13686,18 +8549,7 @@ export class PromiseCertificatesV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13708,18 +8560,7 @@ export class PromiseCertificatesV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readClusterTrustBundleWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -13730,18 +8571,7 @@ export class PromiseCertificatesV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readClusterTrustBundle(name, pretty, observableOptions); return result.toPromise(); } @@ -13756,18 +8586,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -13782,18 +8601,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -13826,18 +8634,7 @@ export class PromiseCertificatesV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createClusterTrustBundleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -13851,18 +8648,7 @@ export class PromiseCertificatesV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createClusterTrustBundle(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -13879,18 +8665,7 @@ export class PromiseCertificatesV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteClusterTrustBundleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -13907,18 +8682,7 @@ export class PromiseCertificatesV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteClusterTrustBundle(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -13942,18 +8706,7 @@ export class PromiseCertificatesV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -13977,18 +8730,7 @@ export class PromiseCertificatesV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionClusterTrustBundle(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -13997,18 +8739,7 @@ export class PromiseCertificatesV1beta1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -14017,18 +8748,7 @@ export class PromiseCertificatesV1beta1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -14048,18 +8768,7 @@ export class PromiseCertificatesV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -14079,18 +8788,7 @@ export class PromiseCertificatesV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listClusterTrustBundle(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -14106,18 +8804,7 @@ export class PromiseCertificatesV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -14133,18 +8820,7 @@ export class PromiseCertificatesV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -14155,18 +8831,7 @@ export class PromiseCertificatesV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readClusterTrustBundleWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -14177,18 +8842,7 @@ export class PromiseCertificatesV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readClusterTrustBundle(name, pretty, observableOptions); return result.toPromise(); } @@ -14203,18 +8857,7 @@ export class PromiseCertificatesV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14229,18 +8872,7 @@ export class PromiseCertificatesV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14268,18 +8900,7 @@ export class PromiseCoordinationApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -14288,18 +8909,7 @@ export class PromiseCoordinationApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -14333,18 +8943,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedLeaseWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14359,18 +8958,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedLease(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14395,18 +8983,7 @@ export class PromiseCoordinationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -14431,18 +9008,7 @@ export class PromiseCoordinationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -14460,18 +9026,7 @@ export class PromiseCoordinationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedLeaseWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -14489,18 +9044,7 @@ export class PromiseCoordinationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -14509,18 +9053,7 @@ export class PromiseCoordinationV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -14529,18 +9062,7 @@ export class PromiseCoordinationV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -14560,18 +9082,7 @@ export class PromiseCoordinationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -14591,18 +9102,7 @@ export class PromiseCoordinationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -14623,18 +9123,7 @@ export class PromiseCoordinationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedLeaseWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -14655,18 +9144,7 @@ export class PromiseCoordinationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -14683,18 +9161,7 @@ export class PromiseCoordinationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -14711,18 +9178,7 @@ export class PromiseCoordinationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -14734,18 +9190,7 @@ export class PromiseCoordinationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedLeaseWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -14757,18 +9202,7 @@ export class PromiseCoordinationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedLease(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -14784,18 +9218,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14811,18 +9234,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14856,18 +9268,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedLeaseCandidateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14882,18 +9283,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedLeaseCandidate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14918,18 +9308,7 @@ export class PromiseCoordinationV1alpha2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -14954,18 +9333,7 @@ export class PromiseCoordinationV1alpha2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -14983,18 +9351,7 @@ export class PromiseCoordinationV1alpha2Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -15012,18 +9369,7 @@ export class PromiseCoordinationV1alpha2Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedLeaseCandidate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -15032,18 +9378,7 @@ export class PromiseCoordinationV1alpha2Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -15052,18 +9387,7 @@ export class PromiseCoordinationV1alpha2Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -15083,18 +9407,7 @@ export class PromiseCoordinationV1alpha2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -15114,18 +9427,7 @@ export class PromiseCoordinationV1alpha2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listLeaseCandidateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -15146,18 +9448,7 @@ export class PromiseCoordinationV1alpha2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -15178,18 +9469,7 @@ export class PromiseCoordinationV1alpha2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedLeaseCandidate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -15206,18 +9486,7 @@ export class PromiseCoordinationV1alpha2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15234,18 +9503,7 @@ export class PromiseCoordinationV1alpha2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15257,18 +9515,7 @@ export class PromiseCoordinationV1alpha2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -15280,18 +9527,7 @@ export class PromiseCoordinationV1alpha2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedLeaseCandidate(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -15307,18 +9543,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15334,18 +9559,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15379,18 +9593,7 @@ export class PromiseCoordinationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta1LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedLeaseCandidateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15405,18 +9608,7 @@ export class PromiseCoordinationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta1LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedLeaseCandidate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15441,18 +9633,7 @@ export class PromiseCoordinationV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -15477,18 +9658,7 @@ export class PromiseCoordinationV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -15506,18 +9676,7 @@ export class PromiseCoordinationV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -15535,18 +9694,7 @@ export class PromiseCoordinationV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedLeaseCandidate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -15555,18 +9703,7 @@ export class PromiseCoordinationV1beta1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -15575,18 +9712,7 @@ export class PromiseCoordinationV1beta1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -15606,18 +9732,7 @@ export class PromiseCoordinationV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -15637,18 +9752,7 @@ export class PromiseCoordinationV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listLeaseCandidateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -15669,18 +9773,7 @@ export class PromiseCoordinationV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -15701,18 +9794,7 @@ export class PromiseCoordinationV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedLeaseCandidate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -15729,18 +9811,7 @@ export class PromiseCoordinationV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15757,18 +9828,7 @@ export class PromiseCoordinationV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15780,18 +9840,7 @@ export class PromiseCoordinationV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -15803,18 +9852,7 @@ export class PromiseCoordinationV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedLeaseCandidate(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -15830,18 +9868,7 @@ export class PromiseCoordinationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta1LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15857,18 +9884,7 @@ export class PromiseCoordinationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta1LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15896,18 +9912,7 @@ export class PromiseCoreApi { * get available API versions */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIVersionsWithHttpInfo(observableOptions); return result.toPromise(); } @@ -15916,18 +9921,7 @@ export class PromiseCoreApi { * get available API versions */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIVersions(observableOptions); return result.toPromise(); } @@ -15958,18 +9952,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectDeleteNamespacedPodProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -15981,18 +9964,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectDeleteNamespacedPodProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -16005,18 +9977,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -16029,18 +9990,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectDeleteNamespacedPodProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -16052,18 +10002,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectDeleteNamespacedServiceProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -16075,18 +10014,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectDeleteNamespacedServiceProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -16099,18 +10027,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -16123,18 +10040,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -16145,18 +10051,7 @@ export class PromiseCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectDeleteNodeProxyWithHttpInfo(name, path, observableOptions); return result.toPromise(); } @@ -16167,18 +10062,7 @@ export class PromiseCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectDeleteNodeProxy(name, path, observableOptions); return result.toPromise(); } @@ -16190,18 +10074,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectDeleteNodeProxyWithPathWithHttpInfo(name, path, path2, observableOptions); return result.toPromise(); } @@ -16213,18 +10086,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectDeleteNodeProxyWithPath(name, path, path2, observableOptions); return result.toPromise(); } @@ -16240,18 +10102,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectGetNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -16267,18 +10118,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectGetNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -16295,18 +10135,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectGetNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -16323,18 +10152,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectGetNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -16346,18 +10164,7 @@ export class PromiseCoreV1Api { * @param [ports] List of ports to forward Required when using WebSockets */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectGetNamespacedPodPortforwardWithHttpInfo(name, namespace, ports, observableOptions); return result.toPromise(); } @@ -16369,18 +10176,7 @@ export class PromiseCoreV1Api { * @param [ports] List of ports to forward Required when using WebSockets */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectGetNamespacedPodPortforward(name, namespace, ports, observableOptions); return result.toPromise(); } @@ -16392,18 +10188,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectGetNamespacedPodProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -16415,18 +10200,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectGetNamespacedPodProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -16439,18 +10213,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectGetNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -16463,18 +10226,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectGetNamespacedPodProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -16486,18 +10238,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectGetNamespacedServiceProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -16509,18 +10250,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectGetNamespacedServiceProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -16533,18 +10263,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectGetNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -16557,18 +10276,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectGetNamespacedServiceProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -16579,18 +10287,7 @@ export class PromiseCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectGetNodeProxyWithHttpInfo(name, path, observableOptions); return result.toPromise(); } @@ -16601,18 +10298,7 @@ export class PromiseCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectGetNodeProxy(name, path, observableOptions); return result.toPromise(); } @@ -16624,18 +10310,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectGetNodeProxyWithPathWithHttpInfo(name, path, path2, observableOptions); return result.toPromise(); } @@ -16647,18 +10322,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectGetNodeProxyWithPath(name, path, path2, observableOptions); return result.toPromise(); } @@ -16670,18 +10334,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectHeadNamespacedPodProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -16693,18 +10346,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectHeadNamespacedPodProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -16717,18 +10359,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectHeadNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -16741,18 +10372,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectHeadNamespacedPodProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -16764,18 +10384,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectHeadNamespacedServiceProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -16787,18 +10396,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectHeadNamespacedServiceProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -16811,18 +10409,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -16835,18 +10422,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectHeadNamespacedServiceProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -16857,18 +10433,7 @@ export class PromiseCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectHeadNodeProxyWithHttpInfo(name, path, observableOptions); return result.toPromise(); } @@ -16879,18 +10444,7 @@ export class PromiseCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectHeadNodeProxy(name, path, observableOptions); return result.toPromise(); } @@ -16902,18 +10456,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectHeadNodeProxyWithPathWithHttpInfo(name, path, path2, observableOptions); return result.toPromise(); } @@ -16925,18 +10468,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectHeadNodeProxyWithPath(name, path, path2, observableOptions); return result.toPromise(); } @@ -16948,18 +10480,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectOptionsNamespacedPodProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -16971,18 +10492,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectOptionsNamespacedPodProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -16995,18 +10505,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -17019,18 +10518,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectOptionsNamespacedPodProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -17042,18 +10530,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectOptionsNamespacedServiceProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -17065,18 +10542,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectOptionsNamespacedServiceProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -17089,18 +10555,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -17113,18 +10568,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -17135,18 +10579,7 @@ export class PromiseCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectOptionsNodeProxyWithHttpInfo(name, path, observableOptions); return result.toPromise(); } @@ -17157,18 +10590,7 @@ export class PromiseCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectOptionsNodeProxy(name, path, observableOptions); return result.toPromise(); } @@ -17180,18 +10602,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectOptionsNodeProxyWithPathWithHttpInfo(name, path, path2, observableOptions); return result.toPromise(); } @@ -17203,18 +10614,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectOptionsNodeProxyWithPath(name, path, path2, observableOptions); return result.toPromise(); } @@ -17226,18 +10626,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPatchNamespacedPodProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -17249,18 +10638,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPatchNamespacedPodProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -17273,18 +10651,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPatchNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -17297,18 +10664,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPatchNamespacedPodProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -17320,18 +10676,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPatchNamespacedServiceProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -17343,18 +10688,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPatchNamespacedServiceProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -17367,18 +10701,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -17391,18 +10714,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPatchNamespacedServiceProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -17413,18 +10725,7 @@ export class PromiseCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectPatchNodeProxyWithHttpInfo(name, path, observableOptions); return result.toPromise(); } @@ -17435,18 +10736,7 @@ export class PromiseCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectPatchNodeProxy(name, path, observableOptions); return result.toPromise(); } @@ -17458,18 +10748,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPatchNodeProxyWithPathWithHttpInfo(name, path, path2, observableOptions); return result.toPromise(); } @@ -17481,18 +10760,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPatchNodeProxyWithPath(name, path, path2, observableOptions); return result.toPromise(); } @@ -17508,18 +10776,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPostNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -17535,18 +10792,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPostNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -17563,18 +10809,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPostNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -17591,18 +10826,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPostNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -17614,18 +10838,7 @@ export class PromiseCoreV1Api { * @param [ports] List of ports to forward Required when using WebSockets */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectPostNamespacedPodPortforwardWithHttpInfo(name, namespace, ports, observableOptions); return result.toPromise(); } @@ -17637,18 +10850,7 @@ export class PromiseCoreV1Api { * @param [ports] List of ports to forward Required when using WebSockets */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectPostNamespacedPodPortforward(name, namespace, ports, observableOptions); return result.toPromise(); } @@ -17660,18 +10862,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPostNamespacedPodProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -17683,18 +10874,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPostNamespacedPodProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -17707,18 +10887,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPostNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -17731,18 +10900,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPostNamespacedPodProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -17754,18 +10912,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPostNamespacedServiceProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -17777,18 +10924,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPostNamespacedServiceProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -17801,18 +10937,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPostNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -17825,18 +10950,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPostNamespacedServiceProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -17847,18 +10961,7 @@ export class PromiseCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectPostNodeProxyWithHttpInfo(name, path, observableOptions); return result.toPromise(); } @@ -17869,18 +10972,7 @@ export class PromiseCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectPostNodeProxy(name, path, observableOptions); return result.toPromise(); } @@ -17892,18 +10984,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPostNodeProxyWithPathWithHttpInfo(name, path, path2, observableOptions); return result.toPromise(); } @@ -17915,18 +10996,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPostNodeProxyWithPath(name, path, path2, observableOptions); return result.toPromise(); } @@ -17938,18 +11008,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPutNamespacedPodProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -17961,18 +11020,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPutNamespacedPodProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -17985,18 +11033,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPutNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -18009,18 +11046,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPutNamespacedPodProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -18032,18 +11058,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPutNamespacedServiceProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -18055,18 +11070,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPutNamespacedServiceProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -18079,18 +11083,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPutNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -18103,18 +11096,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPutNamespacedServiceProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -18125,18 +11107,7 @@ export class PromiseCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectPutNodeProxyWithHttpInfo(name, path, observableOptions); return result.toPromise(); } @@ -18147,18 +11118,7 @@ export class PromiseCoreV1Api { * @param [path] Path is the URL path to use for the current proxy request to node. */ 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 observableOptions = wrapOptions(_options); const result = this.api.connectPutNodeProxy(name, path, observableOptions); return result.toPromise(); } @@ -18170,18 +11130,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPutNodeProxyWithPathWithHttpInfo(name, path, path2, observableOptions); return result.toPromise(); } @@ -18193,18 +11142,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.connectPutNodeProxyWithPath(name, path, path2, observableOptions); return result.toPromise(); } @@ -18218,18 +11156,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespaceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18243,18 +11170,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespace(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18269,18 +11185,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedBindingWithHttpInfo(namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -18295,18 +11200,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedBinding(namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -18321,18 +11215,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedConfigMapWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18347,18 +11230,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedConfigMap(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18373,18 +11245,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedEndpointsWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18399,18 +11260,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedEndpoints(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18425,18 +11275,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18451,18 +11290,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18477,18 +11305,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedLimitRangeWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18503,18 +11320,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedLimitRange(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18529,18 +11335,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedPersistentVolumeClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18555,18 +11350,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedPersistentVolumeClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18581,18 +11365,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedPodWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18607,18 +11380,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedPod(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18634,18 +11396,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedPodBindingWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -18661,18 +11412,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedPodBinding(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -18688,18 +11428,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedPodEvictionWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -18715,18 +11444,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedPodEviction(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -18741,18 +11459,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedPodTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18767,18 +11474,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedPodTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18793,18 +11489,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedReplicationControllerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18819,18 +11504,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedReplicationController(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18845,18 +11519,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedResourceQuotaWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18871,18 +11534,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedResourceQuota(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18897,18 +11549,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedSecretWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18923,18 +11564,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedSecret(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18949,18 +11579,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedServiceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18975,18 +11594,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedService(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19001,18 +11609,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedServiceAccountWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19027,18 +11624,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedServiceAccount(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19054,18 +11640,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedServiceAccountTokenWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -19081,18 +11656,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedServiceAccountToken(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -19106,18 +11670,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNodeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19131,18 +11684,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNode(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19156,18 +11698,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createPersistentVolumeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19181,18 +11712,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createPersistentVolume(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19217,18 +11737,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19253,18 +11762,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19289,18 +11787,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19325,18 +11812,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19361,18 +11837,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19397,18 +11862,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19433,18 +11887,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19469,18 +11912,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19505,18 +11937,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19541,18 +11962,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19577,18 +11987,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19613,18 +12012,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19649,18 +12037,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19685,18 +12062,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19721,18 +12087,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19757,18 +12112,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19793,18 +12137,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19829,18 +12162,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19865,18 +12187,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19901,18 +12212,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19937,18 +12237,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -19973,18 +12262,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -20009,18 +12287,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -20045,18 +12312,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -20080,18 +12336,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionNodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -20115,18 +12360,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionNode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -20150,18 +12384,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -20185,18 +12408,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionPersistentVolume(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -20213,18 +12425,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespaceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20241,18 +12442,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20270,18 +12460,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedConfigMapWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20299,18 +12478,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20328,18 +12496,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedEndpointsWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20357,18 +12514,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20386,18 +12532,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20415,18 +12550,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20444,18 +12568,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20473,18 +12586,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20502,18 +12604,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20531,18 +12622,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20560,18 +12640,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedPodWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20589,18 +12658,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20618,18 +12676,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20647,18 +12694,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20676,18 +12712,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20705,18 +12730,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20734,18 +12748,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20763,18 +12766,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20792,18 +12784,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedSecretWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20821,18 +12802,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20850,18 +12820,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedServiceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20879,18 +12838,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20908,18 +12856,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20937,18 +12874,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20965,18 +12891,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20993,18 +12908,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNode(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -21021,18 +12925,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deletePersistentVolumeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -21049,18 +12942,7 @@ export class PromiseCoreV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -21069,18 +12951,7 @@ export class PromiseCoreV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -21089,18 +12960,7 @@ export class PromiseCoreV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -21120,18 +12980,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listComponentStatusWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21151,18 +13000,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listComponentStatus(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21182,18 +13020,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21213,18 +13040,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listConfigMapForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21244,18 +13060,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21275,18 +13080,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listEndpointsForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21306,18 +13100,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21337,18 +13120,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21368,18 +13140,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21399,18 +13160,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listLimitRangeForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21430,18 +13180,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespaceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21461,18 +13200,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespace(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21493,18 +13221,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedConfigMapWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21525,18 +13242,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21557,18 +13263,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedEndpointsWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21589,18 +13284,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21621,18 +13305,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21653,18 +13326,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21685,18 +13347,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedLimitRangeWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21717,18 +13368,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21749,18 +13389,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21781,18 +13410,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21813,18 +13431,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedPodWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21845,18 +13452,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21877,18 +13473,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedPodTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21909,18 +13494,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21941,18 +13515,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedReplicationControllerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21973,18 +13536,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22005,18 +13557,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedResourceQuotaWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22037,18 +13578,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22069,18 +13599,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedSecretWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22101,18 +13620,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22133,18 +13641,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedServiceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22165,18 +13662,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedService(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22197,18 +13683,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedServiceAccountWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22229,18 +13704,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22260,18 +13724,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22291,18 +13744,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22322,18 +13764,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listPersistentVolumeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22353,18 +13784,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listPersistentVolume(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22384,18 +13804,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22415,18 +13824,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22446,18 +13844,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22477,18 +13864,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listPodForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22508,18 +13884,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22539,18 +13904,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listPodTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22570,18 +13924,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22601,18 +13944,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listReplicationControllerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22632,18 +13964,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22663,18 +13984,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceQuotaForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22694,18 +14004,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22725,18 +14024,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listSecretForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22756,18 +14044,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22787,18 +14064,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listServiceAccountForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22818,18 +14084,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22849,18 +14104,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listServiceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22876,18 +14120,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -22903,18 +14136,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespace(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -22930,18 +14152,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -22957,18 +14168,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespaceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -22985,18 +14185,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23013,18 +14202,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23041,18 +14219,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23069,18 +14236,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23097,18 +14253,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23125,18 +14270,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23153,18 +14287,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23181,18 +14304,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23209,18 +14321,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23237,18 +14338,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23265,18 +14355,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23293,18 +14372,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23321,18 +14389,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23349,18 +14406,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23377,18 +14423,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23405,18 +14440,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23433,18 +14457,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPodResizeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23461,18 +14474,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23489,18 +14491,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23517,18 +14508,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23545,18 +14525,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23573,18 +14542,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23601,18 +14559,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23629,18 +14576,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23657,18 +14593,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23685,18 +14610,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23713,18 +14627,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23741,18 +14644,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23769,18 +14661,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23797,18 +14678,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23825,18 +14695,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23853,18 +14712,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23881,18 +14729,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23909,18 +14746,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23937,18 +14763,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23965,18 +14780,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23993,18 +14797,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24021,18 +14814,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24049,18 +14831,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24077,18 +14848,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24104,18 +14864,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24131,18 +14880,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNode(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24158,18 +14896,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24185,18 +14912,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNodeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24212,18 +14928,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchPersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24239,18 +14944,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchPersistentVolume(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24266,18 +14960,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchPersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24293,18 +14976,7 @@ export class PromiseCoreV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchPersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24315,18 +14987,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readComponentStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -24337,18 +14998,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readComponentStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -24359,18 +15009,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespaceWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -24381,18 +15020,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespace(name, pretty, observableOptions); return result.toPromise(); } @@ -24403,18 +15031,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespaceStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -24425,18 +15042,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespaceStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -24448,18 +15054,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedConfigMapWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24471,18 +15066,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedConfigMap(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24494,18 +15078,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedEndpointsWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24517,18 +15090,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedEndpoints(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24540,18 +15102,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedEventWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24563,18 +15114,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedEvent(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24586,18 +15126,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24609,18 +15138,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedLimitRange(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24632,18 +15150,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24655,18 +15162,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPersistentVolumeClaim(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24678,18 +15174,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24701,18 +15186,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPersistentVolumeClaimStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24724,18 +15198,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24747,18 +15210,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPod(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24770,18 +15222,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24793,18 +15234,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodEphemeralcontainers(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24825,18 +15255,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodLogWithHttpInfo(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps, observableOptions); return result.toPromise(); } @@ -24857,18 +15276,7 @@ export class PromiseCoreV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodLog(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps, observableOptions); return result.toPromise(); } @@ -24880,18 +15288,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodResizeWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24903,18 +15300,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodResize(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24926,18 +15312,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24949,18 +15324,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24972,18 +15336,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24995,18 +15348,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodTemplate(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25018,18 +15360,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25041,18 +15372,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedReplicationController(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25064,18 +15384,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25087,18 +15396,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedReplicationControllerScale(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25110,18 +15408,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25133,18 +15420,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedReplicationControllerStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25156,18 +15432,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25179,18 +15444,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceQuota(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25202,18 +15456,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25225,18 +15468,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceQuotaStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25248,18 +15480,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedSecretWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25271,18 +15492,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedSecret(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25294,18 +15504,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedServiceWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25317,18 +15516,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedService(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25340,18 +15528,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25363,18 +15540,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedServiceAccount(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25386,18 +15552,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedServiceStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25409,18 +15564,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedServiceStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -25431,18 +15575,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNodeWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -25453,18 +15586,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNode(name, pretty, observableOptions); return result.toPromise(); } @@ -25475,18 +15597,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNodeStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -25497,18 +15608,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNodeStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -25519,18 +15619,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readPersistentVolumeWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -25541,18 +15630,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readPersistentVolume(name, pretty, observableOptions); return result.toPromise(); } @@ -25563,18 +15641,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readPersistentVolumeStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -25585,18 +15652,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readPersistentVolumeStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -25611,18 +15667,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25637,18 +15682,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespace(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25663,18 +15697,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceNamespaceFinalizeWithHttpInfo(name, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -25689,18 +15712,7 @@ export class PromiseCoreV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceNamespaceFinalize(name, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -25715,18 +15727,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25741,18 +15742,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespaceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25768,18 +15758,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25795,18 +15774,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25822,18 +15790,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25849,18 +15806,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25876,18 +15822,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25903,18 +15838,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25930,18 +15854,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25957,18 +15870,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25984,18 +15886,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26011,18 +15902,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26038,18 +15918,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26065,18 +15934,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26092,18 +15950,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26119,18 +15966,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26146,18 +15982,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26173,18 +15998,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26200,18 +16014,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPodResizeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26227,18 +16030,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26254,18 +16046,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26281,18 +16062,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26308,18 +16078,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26335,18 +16094,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26362,18 +16110,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26389,18 +16126,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26416,18 +16142,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26443,18 +16158,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26470,18 +16174,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26497,18 +16190,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26524,18 +16206,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26551,18 +16222,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26578,18 +16238,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26605,18 +16254,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26632,18 +16270,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26659,18 +16286,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26686,18 +16302,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26713,18 +16318,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26740,18 +16334,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26767,18 +16350,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26794,18 +16366,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26821,18 +16382,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26847,18 +16397,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26873,18 +16412,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNode(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26899,18 +16427,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26925,18 +16442,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNodeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26951,18 +16457,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replacePersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -26977,18 +16472,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replacePersistentVolume(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -27003,18 +16487,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replacePersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -27029,18 +16502,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replacePersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -27076,18 +16538,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.createClusterCustomObjectWithHttpInfo(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -27104,18 +16555,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.createClusterCustomObject(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -27133,18 +16573,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -27162,18 +16591,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedCustomObject(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -27191,18 +16609,7 @@ export class PromiseCustomObjectsApi { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteClusterCustomObjectWithHttpInfo(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, observableOptions); return result.toPromise(); } @@ -27220,18 +16627,7 @@ export class PromiseCustomObjectsApi { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteClusterCustomObject(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, observableOptions); return result.toPromise(); } @@ -27250,18 +16646,7 @@ export class PromiseCustomObjectsApi { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionClusterCustomObjectWithHttpInfo(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, observableOptions); return result.toPromise(); } @@ -27280,18 +16665,7 @@ export class PromiseCustomObjectsApi { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionClusterCustomObject(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, observableOptions); return result.toPromise(); } @@ -27312,18 +16686,7 @@ export class PromiseCustomObjectsApi { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, observableOptions); return result.toPromise(); } @@ -27344,18 +16707,7 @@ export class PromiseCustomObjectsApi { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionNamespacedCustomObject(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, observableOptions); return result.toPromise(); } @@ -27374,18 +16726,7 @@ export class PromiseCustomObjectsApi { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, observableOptions); return result.toPromise(); } @@ -27404,18 +16745,7 @@ export class PromiseCustomObjectsApi { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedCustomObject(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, observableOptions); return result.toPromise(); } @@ -27426,18 +16756,7 @@ export class PromiseCustomObjectsApi { * @param version The custom resource\'s version */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(group, version, observableOptions); return result.toPromise(); } @@ -27448,18 +16767,7 @@ export class PromiseCustomObjectsApi { * @param version The custom resource\'s version */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(group, version, observableOptions); return result.toPromise(); } @@ -27472,18 +16780,7 @@ export class PromiseCustomObjectsApi { * @param name the custom object\'s name */ 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 observableOptions = wrapOptions(_options); const result = this.api.getClusterCustomObjectWithHttpInfo(group, version, plural, name, observableOptions); return result.toPromise(); } @@ -27496,18 +16793,7 @@ export class PromiseCustomObjectsApi { * @param name the custom object\'s name */ 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 observableOptions = wrapOptions(_options); const result = this.api.getClusterCustomObject(group, version, plural, name, observableOptions); return result.toPromise(); } @@ -27520,18 +16806,7 @@ export class PromiseCustomObjectsApi { * @param name the custom object\'s name */ 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 observableOptions = wrapOptions(_options); const result = this.api.getClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, observableOptions); return result.toPromise(); } @@ -27544,18 +16819,7 @@ export class PromiseCustomObjectsApi { * @param name the custom object\'s name */ 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 observableOptions = wrapOptions(_options); const result = this.api.getClusterCustomObjectScale(group, version, plural, name, observableOptions); return result.toPromise(); } @@ -27568,18 +16832,7 @@ export class PromiseCustomObjectsApi { * @param name the custom object\'s name */ 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 observableOptions = wrapOptions(_options); const result = this.api.getClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, observableOptions); return result.toPromise(); } @@ -27592,18 +16845,7 @@ export class PromiseCustomObjectsApi { * @param name the custom object\'s name */ 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 observableOptions = wrapOptions(_options); const result = this.api.getClusterCustomObjectStatus(group, version, plural, name, observableOptions); return result.toPromise(); } @@ -27617,18 +16859,7 @@ export class PromiseCustomObjectsApi { * @param name the custom object\'s name */ 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 observableOptions = wrapOptions(_options); const result = this.api.getNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, observableOptions); return result.toPromise(); } @@ -27642,18 +16873,7 @@ export class PromiseCustomObjectsApi { * @param name the custom object\'s name */ 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 observableOptions = wrapOptions(_options); const result = this.api.getNamespacedCustomObject(group, version, namespace, plural, name, observableOptions); return result.toPromise(); } @@ -27667,18 +16887,7 @@ export class PromiseCustomObjectsApi { * @param name the custom object\'s name */ 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 observableOptions = wrapOptions(_options); const result = this.api.getNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, observableOptions); return result.toPromise(); } @@ -27692,18 +16901,7 @@ export class PromiseCustomObjectsApi { * @param name the custom object\'s name */ 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 observableOptions = wrapOptions(_options); const result = this.api.getNamespacedCustomObjectScale(group, version, namespace, plural, name, observableOptions); return result.toPromise(); } @@ -27717,18 +16915,7 @@ export class PromiseCustomObjectsApi { * @param name the custom object\'s name */ 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 observableOptions = wrapOptions(_options); const result = this.api.getNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, observableOptions); return result.toPromise(); } @@ -27742,18 +16929,7 @@ export class PromiseCustomObjectsApi { * @param name the custom object\'s name */ 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 observableOptions = wrapOptions(_options); const result = this.api.getNamespacedCustomObjectStatus(group, version, namespace, plural, name, observableOptions); return result.toPromise(); } @@ -27775,18 +16951,7 @@ export class PromiseCustomObjectsApi { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listClusterCustomObjectWithHttpInfo(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -27808,18 +16973,7 @@ export class PromiseCustomObjectsApi { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listClusterCustomObject(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -27841,18 +16995,7 @@ export class PromiseCustomObjectsApi { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listCustomObjectForAllNamespacesWithHttpInfo(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -27874,18 +17017,7 @@ export class PromiseCustomObjectsApi { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listCustomObjectForAllNamespaces(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -27908,18 +17040,7 @@ export class PromiseCustomObjectsApi { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -27942,18 +17063,7 @@ export class PromiseCustomObjectsApi { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedCustomObject(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -27971,18 +17081,7 @@ export class PromiseCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -28000,18 +17099,7 @@ export class PromiseCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -28029,18 +17117,7 @@ export class PromiseCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -28058,18 +17135,7 @@ export class PromiseCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -28087,18 +17153,7 @@ export class PromiseCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -28116,18 +17171,7 @@ export class PromiseCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -28146,18 +17190,7 @@ export class PromiseCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -28176,18 +17209,7 @@ export class PromiseCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -28206,18 +17228,7 @@ export class PromiseCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -28236,18 +17247,7 @@ export class PromiseCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -28266,18 +17266,7 @@ export class PromiseCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -28296,18 +17285,7 @@ export class PromiseCustomObjectsApi { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -28324,18 +17302,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -28352,18 +17319,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -28380,18 +17336,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -28408,18 +17353,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -28436,18 +17370,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -28464,18 +17387,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -28493,18 +17405,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -28522,18 +17423,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -28551,18 +17441,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -28580,18 +17459,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -28609,18 +17477,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -28638,18 +17495,7 @@ 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) */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -28677,18 +17523,7 @@ export class PromiseDiscoveryApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -28697,18 +17532,7 @@ export class PromiseDiscoveryApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -28742,18 +17566,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedEndpointSliceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -28768,18 +17581,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedEndpointSlice(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -28804,18 +17606,7 @@ export class PromiseDiscoveryV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -28840,18 +17631,7 @@ export class PromiseDiscoveryV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -28869,18 +17649,7 @@ export class PromiseDiscoveryV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -28898,18 +17667,7 @@ export class PromiseDiscoveryV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedEndpointSlice(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -28918,18 +17676,7 @@ export class PromiseDiscoveryV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -28938,18 +17685,7 @@ export class PromiseDiscoveryV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -28969,18 +17705,7 @@ export class PromiseDiscoveryV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -29000,18 +17725,7 @@ export class PromiseDiscoveryV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listEndpointSliceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -29032,18 +17746,7 @@ export class PromiseDiscoveryV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedEndpointSliceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -29064,18 +17767,7 @@ export class PromiseDiscoveryV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedEndpointSlice(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -29092,18 +17784,7 @@ export class PromiseDiscoveryV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -29120,18 +17801,7 @@ export class PromiseDiscoveryV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -29143,18 +17813,7 @@ export class PromiseDiscoveryV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -29166,18 +17825,7 @@ export class PromiseDiscoveryV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedEndpointSlice(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -29193,18 +17841,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -29220,18 +17857,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -29259,18 +17885,7 @@ export class PromiseEventsApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -29279,18 +17894,7 @@ export class PromiseEventsApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -29324,18 +17928,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -29350,18 +17943,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -29386,18 +17968,7 @@ export class PromiseEventsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -29422,18 +17993,7 @@ export class PromiseEventsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -29451,18 +18011,7 @@ export class PromiseEventsV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -29480,18 +18029,7 @@ export class PromiseEventsV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -29500,18 +18038,7 @@ export class PromiseEventsV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -29520,18 +18047,7 @@ export class PromiseEventsV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -29551,18 +18067,7 @@ export class PromiseEventsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -29582,18 +18087,7 @@ export class PromiseEventsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -29614,18 +18108,7 @@ export class PromiseEventsV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -29646,18 +18129,7 @@ export class PromiseEventsV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -29674,18 +18146,7 @@ export class PromiseEventsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -29702,18 +18163,7 @@ export class PromiseEventsV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -29725,18 +18175,7 @@ export class PromiseEventsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedEventWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -29748,18 +18187,7 @@ export class PromiseEventsV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedEvent(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -29775,18 +18203,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -29802,18 +18219,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -29841,18 +18247,7 @@ export class PromiseFlowcontrolApiserverApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -29861,18 +18256,7 @@ export class PromiseFlowcontrolApiserverApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -29905,18 +18289,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createFlowSchemaWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -29930,18 +18303,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createFlowSchema(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -29955,18 +18317,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createPriorityLevelConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -29980,18 +18331,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -30015,18 +18355,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionFlowSchemaWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -30050,18 +18379,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -30085,18 +18403,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -30120,18 +18427,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionPriorityLevelConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -30148,18 +18444,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteFlowSchemaWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -30176,18 +18461,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteFlowSchema(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -30204,18 +18478,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deletePriorityLevelConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -30232,18 +18495,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deletePriorityLevelConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -30252,18 +18504,7 @@ export class PromiseFlowcontrolApiserverV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -30272,18 +18513,7 @@ export class PromiseFlowcontrolApiserverV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -30303,18 +18533,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listFlowSchemaWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -30334,18 +18553,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -30365,18 +18573,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listPriorityLevelConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -30396,18 +18593,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listPriorityLevelConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -30423,18 +18609,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -30450,18 +18625,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -30477,18 +18641,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -30504,18 +18657,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -30531,18 +18673,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchPriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -30558,18 +18689,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -30585,18 +18705,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchPriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -30612,18 +18721,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -30634,18 +18732,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readFlowSchemaWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -30656,18 +18743,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readFlowSchema(name, pretty, observableOptions); return result.toPromise(); } @@ -30678,18 +18754,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readFlowSchemaStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -30700,18 +18765,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readFlowSchemaStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -30722,18 +18776,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readPriorityLevelConfigurationWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -30744,18 +18787,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readPriorityLevelConfiguration(name, pretty, observableOptions); return result.toPromise(); } @@ -30766,18 +18798,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readPriorityLevelConfigurationStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -30788,18 +18809,7 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readPriorityLevelConfigurationStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -30814,18 +18824,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -30840,18 +18839,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -30866,18 +18854,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -30892,18 +18869,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -30918,18 +18884,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replacePriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -30944,18 +18899,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -30970,18 +18914,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replacePriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -30996,18 +18929,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -31035,18 +18957,7 @@ export class PromiseInternalApiserverApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -31055,18 +18966,7 @@ export class PromiseInternalApiserverApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -31099,18 +18999,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createStorageVersionWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -31124,18 +19013,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createStorageVersion(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -31159,18 +19037,7 @@ export class PromiseInternalApiserverV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionStorageVersionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -31194,18 +19061,7 @@ export class PromiseInternalApiserverV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionStorageVersion(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -31222,18 +19078,7 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteStorageVersionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -31250,18 +19095,7 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteStorageVersion(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -31270,18 +19104,7 @@ export class PromiseInternalApiserverV1alpha1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -31290,18 +19113,7 @@ export class PromiseInternalApiserverV1alpha1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -31321,18 +19133,7 @@ export class PromiseInternalApiserverV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listStorageVersionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -31352,18 +19153,7 @@ export class PromiseInternalApiserverV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listStorageVersion(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -31379,18 +19169,7 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchStorageVersionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -31406,18 +19185,7 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchStorageVersion(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -31433,18 +19201,7 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchStorageVersionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -31460,18 +19217,7 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchStorageVersionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -31482,18 +19228,7 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readStorageVersionWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -31504,18 +19239,7 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readStorageVersion(name, pretty, observableOptions); return result.toPromise(); } @@ -31526,18 +19250,7 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readStorageVersionStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -31548,18 +19261,7 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readStorageVersionStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -31574,18 +19276,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceStorageVersionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -31600,18 +19291,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceStorageVersion(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -31626,18 +19306,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceStorageVersionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -31652,18 +19321,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceStorageVersionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -31691,18 +19349,7 @@ export class PromiseLogsApi { * @param logpath path to the log */ 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 observableOptions = wrapOptions(_options); const result = this.api.logFileHandlerWithHttpInfo(logpath, observableOptions); return result.toPromise(); } @@ -31711,18 +19358,7 @@ export class PromiseLogsApi { * @param logpath path to the log */ 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 observableOptions = wrapOptions(_options); const result = this.api.logFileHandler(logpath, observableOptions); return result.toPromise(); } @@ -31730,18 +19366,7 @@ export class PromiseLogsApi { /** */ 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 observableOptions = wrapOptions(_options); const result = this.api.logFileListHandlerWithHttpInfo(observableOptions); return result.toPromise(); } @@ -31749,18 +19374,7 @@ export class PromiseLogsApi { /** */ 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 observableOptions = wrapOptions(_options); const result = this.api.logFileListHandler(observableOptions); return result.toPromise(); } @@ -31788,18 +19402,7 @@ export class PromiseNetworkingApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -31808,18 +19411,7 @@ export class PromiseNetworkingApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -31852,18 +19444,7 @@ 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. */ public createIPAddressWithHttpInfo(body: V1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createIPAddressWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -31877,18 +19458,7 @@ 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. */ public createIPAddress(body: V1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -31902,18 +19472,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createIngressClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -31927,18 +19486,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createIngressClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -31953,18 +19501,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedIngressWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -31979,18 +19516,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedIngress(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -32005,18 +19531,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedNetworkPolicyWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -32031,18 +19546,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedNetworkPolicy(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -32056,18 +19560,7 @@ 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. */ public createServiceCIDRWithHttpInfo(body: V1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createServiceCIDRWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -32081,18 +19574,7 @@ 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. */ public createServiceCIDR(body: V1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createServiceCIDR(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -32116,18 +19598,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -32151,18 +19622,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionIPAddress(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -32186,18 +19646,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -32221,18 +19670,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionIngressClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -32257,18 +19695,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -32293,18 +19720,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -32329,18 +19745,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -32365,18 +19770,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -32400,18 +19794,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -32435,18 +19818,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionServiceCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -32463,18 +19835,7 @@ export class PromiseNetworkingV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteIPAddressWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -32491,18 +19852,7 @@ export class PromiseNetworkingV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteIPAddress(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -32519,18 +19869,7 @@ export class PromiseNetworkingV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteIngressClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -32547,18 +19886,7 @@ export class PromiseNetworkingV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteIngressClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -32576,18 +19904,7 @@ export class PromiseNetworkingV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -32605,18 +19922,7 @@ export class PromiseNetworkingV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -32634,18 +19940,7 @@ export class PromiseNetworkingV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -32663,18 +19958,7 @@ export class PromiseNetworkingV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -32691,18 +19975,7 @@ export class PromiseNetworkingV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteServiceCIDRWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -32719,18 +19992,7 @@ export class PromiseNetworkingV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteServiceCIDR(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -32739,18 +20001,7 @@ export class PromiseNetworkingV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -32759,18 +20010,7 @@ export class PromiseNetworkingV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -32790,18 +20030,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -32821,18 +20050,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listIPAddress(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -32852,18 +20070,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -32883,18 +20090,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listIngressClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -32914,18 +20110,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -32945,18 +20130,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -32977,18 +20151,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -33009,18 +20172,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -33041,18 +20193,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -33073,18 +20214,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -33104,18 +20234,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -33135,18 +20254,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -33166,18 +20274,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -33197,18 +20294,7 @@ export class PromiseNetworkingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listServiceCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -33224,18 +20310,7 @@ export class PromiseNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -33251,18 +20326,7 @@ export class PromiseNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -33278,18 +20342,7 @@ export class PromiseNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -33305,18 +20358,7 @@ export class PromiseNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -33333,18 +20375,7 @@ export class PromiseNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -33361,18 +20392,7 @@ export class PromiseNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -33389,18 +20409,7 @@ export class PromiseNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -33417,18 +20426,7 @@ export class PromiseNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -33445,18 +20443,7 @@ export class PromiseNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -33473,18 +20460,7 @@ export class PromiseNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -33500,18 +20476,7 @@ export class PromiseNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -33527,18 +20492,7 @@ export class PromiseNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -33554,18 +20508,7 @@ export class PromiseNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -33581,18 +20524,7 @@ export class PromiseNetworkingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -33603,18 +20535,7 @@ export class PromiseNetworkingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readIPAddressWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -33625,18 +20546,7 @@ export class PromiseNetworkingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readIPAddress(name, pretty, observableOptions); return result.toPromise(); } @@ -33647,18 +20557,7 @@ export class PromiseNetworkingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readIngressClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -33669,18 +20568,7 @@ export class PromiseNetworkingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readIngressClass(name, pretty, observableOptions); return result.toPromise(); } @@ -33692,18 +20580,7 @@ export class PromiseNetworkingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedIngressWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -33715,18 +20592,7 @@ export class PromiseNetworkingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedIngress(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -33738,18 +20604,7 @@ export class PromiseNetworkingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -33761,18 +20616,7 @@ export class PromiseNetworkingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedIngressStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -33784,18 +20628,7 @@ export class PromiseNetworkingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -33807,18 +20640,7 @@ export class PromiseNetworkingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedNetworkPolicy(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -33829,18 +20651,7 @@ export class PromiseNetworkingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readServiceCIDRWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -33851,18 +20662,7 @@ export class PromiseNetworkingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readServiceCIDR(name, pretty, observableOptions); return result.toPromise(); } @@ -33873,18 +20673,7 @@ export class PromiseNetworkingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readServiceCIDRStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -33895,18 +20684,7 @@ export class PromiseNetworkingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readServiceCIDRStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -33921,18 +20699,7 @@ 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. */ public replaceIPAddressWithHttpInfo(name: string, body: V1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -33947,18 +20714,7 @@ 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. */ public replaceIPAddress(name: string, body: V1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -33973,18 +20729,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -33999,18 +20744,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34026,18 +20760,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34053,18 +20776,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34080,18 +20792,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34107,18 +20808,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34134,18 +20824,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34161,18 +20840,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34187,18 +20855,7 @@ 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. */ public replaceServiceCIDRWithHttpInfo(name: string, body: V1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34213,18 +20870,7 @@ 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. */ public replaceServiceCIDR(name: string, body: V1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34239,18 +20885,7 @@ 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. */ public replaceServiceCIDRStatusWithHttpInfo(name: string, body: V1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34265,18 +20900,7 @@ 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. */ public replaceServiceCIDRStatus(name: string, body: V1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34309,18 +20933,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createIPAddressWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34334,18 +20947,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34359,18 +20961,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createServiceCIDRWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34384,18 +20975,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createServiceCIDR(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -34419,18 +20999,7 @@ export class PromiseNetworkingV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -34454,18 +21023,7 @@ export class PromiseNetworkingV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionIPAddress(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -34489,18 +21047,7 @@ export class PromiseNetworkingV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -34524,18 +21071,7 @@ export class PromiseNetworkingV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionServiceCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -34552,18 +21088,7 @@ export class PromiseNetworkingV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteIPAddressWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -34580,18 +21105,7 @@ export class PromiseNetworkingV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteIPAddress(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -34608,18 +21122,7 @@ export class PromiseNetworkingV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteServiceCIDRWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -34636,18 +21139,7 @@ export class PromiseNetworkingV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteServiceCIDR(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -34656,18 +21148,7 @@ export class PromiseNetworkingV1beta1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -34676,18 +21157,7 @@ export class PromiseNetworkingV1beta1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -34707,18 +21177,7 @@ export class PromiseNetworkingV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -34738,18 +21197,7 @@ export class PromiseNetworkingV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listIPAddress(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -34769,18 +21217,7 @@ export class PromiseNetworkingV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -34800,18 +21237,7 @@ export class PromiseNetworkingV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listServiceCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -34827,18 +21253,7 @@ export class PromiseNetworkingV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -34854,18 +21269,7 @@ export class PromiseNetworkingV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -34881,18 +21285,7 @@ export class PromiseNetworkingV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -34908,18 +21301,7 @@ export class PromiseNetworkingV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -34935,18 +21317,7 @@ export class PromiseNetworkingV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -34962,18 +21333,7 @@ export class PromiseNetworkingV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -34984,18 +21344,7 @@ export class PromiseNetworkingV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readIPAddressWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -35006,18 +21355,7 @@ export class PromiseNetworkingV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readIPAddress(name, pretty, observableOptions); return result.toPromise(); } @@ -35028,18 +21366,7 @@ export class PromiseNetworkingV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readServiceCIDRWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -35050,18 +21377,7 @@ export class PromiseNetworkingV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readServiceCIDR(name, pretty, observableOptions); return result.toPromise(); } @@ -35072,18 +21388,7 @@ export class PromiseNetworkingV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readServiceCIDRStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -35094,18 +21399,7 @@ export class PromiseNetworkingV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readServiceCIDRStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -35120,18 +21414,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -35146,18 +21429,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -35172,18 +21444,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -35198,18 +21459,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -35224,18 +21474,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -35250,18 +21489,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -35289,18 +21517,7 @@ export class PromiseNodeApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -35309,18 +21526,7 @@ export class PromiseNodeApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -35353,18 +21559,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -35378,18 +21573,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createRuntimeClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -35413,18 +21597,7 @@ export class PromiseNodeV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -35448,18 +21621,7 @@ export class PromiseNodeV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -35476,18 +21638,7 @@ export class PromiseNodeV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteRuntimeClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -35504,18 +21655,7 @@ export class PromiseNodeV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -35524,18 +21664,7 @@ export class PromiseNodeV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -35544,18 +21673,7 @@ export class PromiseNodeV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -35575,18 +21693,7 @@ export class PromiseNodeV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -35606,18 +21713,7 @@ export class PromiseNodeV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -35633,18 +21729,7 @@ export class PromiseNodeV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -35660,18 +21745,7 @@ export class PromiseNodeV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -35682,18 +21756,7 @@ export class PromiseNodeV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readRuntimeClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -35704,18 +21767,7 @@ export class PromiseNodeV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readRuntimeClass(name, pretty, observableOptions); return result.toPromise(); } @@ -35730,18 +21782,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -35756,18 +21797,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -35795,18 +21825,7 @@ export class PromiseOpenidApi { * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) */ 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 observableOptions = wrapOptions(_options); const result = this.api.getServiceAccountIssuerOpenIDKeysetWithHttpInfo(observableOptions); return result.toPromise(); } @@ -35815,18 +21834,7 @@ export class PromiseOpenidApi { * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) */ 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 observableOptions = wrapOptions(_options); const result = this.api.getServiceAccountIssuerOpenIDKeyset(observableOptions); return result.toPromise(); } @@ -35854,18 +21862,7 @@ export class PromisePolicyApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -35874,18 +21871,7 @@ export class PromisePolicyApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -35919,18 +21905,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedPodDisruptionBudgetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -35945,18 +21920,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedPodDisruptionBudget(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -35981,18 +21945,7 @@ export class PromisePolicyV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -36017,18 +21970,7 @@ export class PromisePolicyV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -36046,18 +21988,7 @@ export class PromisePolicyV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -36075,18 +22006,7 @@ export class PromisePolicyV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -36095,18 +22015,7 @@ export class PromisePolicyV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -36115,18 +22024,7 @@ export class PromisePolicyV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -36147,18 +22045,7 @@ export class PromisePolicyV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -36179,18 +22066,7 @@ export class PromisePolicyV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -36210,18 +22086,7 @@ export class PromisePolicyV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -36241,18 +22106,7 @@ export class PromisePolicyV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -36269,18 +22123,7 @@ export class PromisePolicyV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -36297,18 +22140,7 @@ export class PromisePolicyV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -36325,18 +22157,7 @@ export class PromisePolicyV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -36353,18 +22174,7 @@ export class PromisePolicyV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -36376,18 +22186,7 @@ export class PromisePolicyV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -36399,18 +22198,7 @@ export class PromisePolicyV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodDisruptionBudget(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -36422,18 +22210,7 @@ export class PromisePolicyV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -36445,18 +22222,7 @@ export class PromisePolicyV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -36472,18 +22238,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -36499,18 +22254,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -36526,18 +22270,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -36553,18 +22286,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -36592,18 +22314,7 @@ export class PromiseRbacAuthorizationApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -36612,18 +22323,7 @@ export class PromiseRbacAuthorizationApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -36656,18 +22356,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createClusterRoleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -36681,18 +22370,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createClusterRole(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -36706,18 +22384,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createClusterRoleBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -36731,18 +22398,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createClusterRoleBinding(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -36757,18 +22413,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedRoleWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -36783,18 +22428,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -36809,18 +22443,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedRoleBindingWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -36835,18 +22458,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -36863,18 +22475,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteClusterRoleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -36891,18 +22492,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -36919,18 +22509,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteClusterRoleBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -36947,18 +22526,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -36982,18 +22550,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -37017,18 +22574,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -37052,18 +22598,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -37087,18 +22622,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -37123,18 +22647,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -37159,18 +22672,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -37195,18 +22697,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -37231,18 +22722,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -37260,18 +22740,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -37289,18 +22758,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -37318,18 +22776,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -37347,18 +22794,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -37367,18 +22803,7 @@ export class PromiseRbacAuthorizationV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -37387,18 +22812,7 @@ export class PromiseRbacAuthorizationV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -37418,18 +22832,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -37449,18 +22852,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -37480,18 +22872,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -37511,18 +22892,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -37543,18 +22913,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -37575,18 +22934,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -37607,18 +22955,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -37639,18 +22976,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -37670,18 +22996,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -37701,18 +23016,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -37732,18 +23036,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -37763,18 +23056,7 @@ export class PromiseRbacAuthorizationV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -37790,18 +23072,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -37817,18 +23088,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchClusterRole(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -37844,18 +23104,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -37871,18 +23120,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -37899,18 +23137,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -37927,18 +23154,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -37955,18 +23171,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -37983,18 +23188,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -38005,18 +23199,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readClusterRoleWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -38027,18 +23210,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readClusterRole(name, pretty, observableOptions); return result.toPromise(); } @@ -38049,18 +23221,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readClusterRoleBindingWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -38071,18 +23232,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readClusterRoleBinding(name, pretty, observableOptions); return result.toPromise(); } @@ -38094,18 +23244,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedRoleWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -38117,18 +23256,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedRole(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -38140,18 +23268,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -38163,18 +23280,7 @@ export class PromiseRbacAuthorizationV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedRoleBinding(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -38189,18 +23295,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38215,18 +23310,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceClusterRole(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38241,18 +23325,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38267,18 +23340,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38294,18 +23356,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38321,18 +23372,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38348,18 +23388,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38375,18 +23404,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38414,18 +23432,7 @@ export class PromiseResourceApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -38434,18 +23441,7 @@ export class PromiseResourceApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -38478,18 +23474,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38503,18 +23488,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38528,18 +23502,7 @@ 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. */ public createDeviceTaintRuleWithHttpInfo(body: V1alpha3DeviceTaintRule, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createDeviceTaintRuleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38553,18 +23516,7 @@ 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. */ public createDeviceTaintRule(body: V1alpha3DeviceTaintRule, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createDeviceTaintRule(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38579,18 +23531,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38605,18 +23546,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38631,18 +23561,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38657,18 +23576,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38682,18 +23590,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38707,18 +23604,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -38742,18 +23628,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -38777,18 +23652,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -38812,18 +23676,7 @@ export class PromiseResourceV1alpha3Api { * @param [body] */ public deleteCollectionDeviceTaintRuleWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: 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 observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -38847,18 +23700,7 @@ export class PromiseResourceV1alpha3Api { * @param [body] */ public deleteCollectionDeviceTaintRule(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionDeviceTaintRule(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -38883,18 +23725,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -38919,18 +23750,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -38955,18 +23775,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -38991,18 +23800,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -39026,18 +23824,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -39061,18 +23848,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -39089,18 +23865,7 @@ export class PromiseResourceV1alpha3Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -39117,18 +23882,7 @@ export class PromiseResourceV1alpha3Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -39145,18 +23899,7 @@ export class PromiseResourceV1alpha3Api { * @param [body] */ public deleteDeviceTaintRuleWithHttpInfo(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 observableOptions = wrapOptions(_options); const result = this.api.deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -39173,18 +23916,7 @@ export class PromiseResourceV1alpha3Api { * @param [body] */ public deleteDeviceTaintRule(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 observableOptions = wrapOptions(_options); const result = this.api.deleteDeviceTaintRule(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -39202,18 +23934,7 @@ export class PromiseResourceV1alpha3Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -39231,18 +23952,7 @@ export class PromiseResourceV1alpha3Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -39260,18 +23970,7 @@ export class PromiseResourceV1alpha3Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -39289,18 +23988,7 @@ export class PromiseResourceV1alpha3Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -39317,18 +24005,7 @@ export class PromiseResourceV1alpha3Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -39345,18 +24022,7 @@ export class PromiseResourceV1alpha3Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -39365,18 +24031,7 @@ export class PromiseResourceV1alpha3Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -39385,18 +24040,7 @@ export class PromiseResourceV1alpha3Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -39416,18 +24060,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -39447,18 +24080,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -39478,18 +24100,7 @@ export class PromiseResourceV1alpha3Api { * @param [watch] Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ public listDeviceTaintRuleWithHttpInfo(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 observableOptions = wrapOptions(_options); const result = this.api.listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -39509,18 +24120,7 @@ export class PromiseResourceV1alpha3Api { * @param [watch] Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ public listDeviceTaintRule(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 observableOptions = wrapOptions(_options); const result = this.api.listDeviceTaintRule(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -39541,18 +24141,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -39573,18 +24162,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -39605,18 +24183,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -39637,18 +24204,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -39668,18 +24224,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -39699,18 +24244,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -39730,18 +24264,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -39761,18 +24284,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -39792,18 +24304,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -39823,18 +24324,7 @@ export class PromiseResourceV1alpha3Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -39850,18 +24340,7 @@ export class PromiseResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -39877,18 +24356,7 @@ export class PromiseResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -39904,18 +24372,7 @@ export class PromiseResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ public patchDeviceTaintRuleWithHttpInfo(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 observableOptions = wrapOptions(_options); const result = this.api.patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -39931,18 +24388,7 @@ export class PromiseResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ public patchDeviceTaintRule(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 observableOptions = wrapOptions(_options); const result = this.api.patchDeviceTaintRule(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -39959,18 +24405,7 @@ export class PromiseResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -39987,18 +24422,7 @@ export class PromiseResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -40015,18 +24439,7 @@ export class PromiseResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -40043,18 +24456,7 @@ export class PromiseResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -40071,18 +24473,7 @@ export class PromiseResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -40099,18 +24490,7 @@ export class PromiseResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -40126,18 +24506,7 @@ export class PromiseResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -40153,18 +24522,7 @@ export class PromiseResourceV1alpha3Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -40175,18 +24533,7 @@ export class PromiseResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readDeviceClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -40197,18 +24544,7 @@ export class PromiseResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readDeviceClass(name, pretty, observableOptions); return result.toPromise(); } @@ -40219,18 +24555,7 @@ export class PromiseResourceV1alpha3Api { * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ public readDeviceTaintRuleWithHttpInfo(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 observableOptions = wrapOptions(_options); const result = this.api.readDeviceTaintRuleWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -40241,18 +24566,7 @@ export class PromiseResourceV1alpha3Api { * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ public readDeviceTaintRule(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 observableOptions = wrapOptions(_options); const result = this.api.readDeviceTaintRule(name, pretty, observableOptions); return result.toPromise(); } @@ -40264,18 +24578,7 @@ export class PromiseResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -40287,18 +24590,7 @@ export class PromiseResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaim(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -40310,18 +24602,7 @@ export class PromiseResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -40333,18 +24614,7 @@ export class PromiseResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -40356,18 +24626,7 @@ export class PromiseResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -40379,18 +24638,7 @@ export class PromiseResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimTemplate(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -40401,18 +24649,7 @@ export class PromiseResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readResourceSliceWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -40423,18 +24660,7 @@ export class PromiseResourceV1alpha3Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readResourceSlice(name, pretty, observableOptions); return result.toPromise(); } @@ -40449,18 +24675,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40475,18 +24690,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40501,18 +24705,7 @@ 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. */ public replaceDeviceTaintRuleWithHttpInfo(name: string, body: V1alpha3DeviceTaintRule, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40527,18 +24720,7 @@ 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. */ public replaceDeviceTaintRule(name: string, body: V1alpha3DeviceTaintRule, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceDeviceTaintRule(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40554,18 +24736,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40581,18 +24752,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40608,18 +24768,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40635,18 +24784,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40662,18 +24800,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40689,18 +24816,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40715,18 +24831,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40741,18 +24846,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40785,18 +24879,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40810,18 +24893,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40836,18 +24908,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40862,18 +24923,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40888,18 +24938,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40914,18 +24953,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40939,18 +24967,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40964,18 +24981,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -40999,18 +25005,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -41034,18 +25029,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -41070,18 +25054,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -41106,18 +25079,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -41142,18 +25104,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -41178,18 +25129,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -41213,18 +25153,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -41248,18 +25177,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -41276,18 +25194,7 @@ export class PromiseResourceV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -41304,18 +25211,7 @@ export class PromiseResourceV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -41333,18 +25229,7 @@ export class PromiseResourceV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -41362,18 +25247,7 @@ export class PromiseResourceV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -41391,18 +25265,7 @@ export class PromiseResourceV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -41420,18 +25283,7 @@ export class PromiseResourceV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -41448,18 +25300,7 @@ export class PromiseResourceV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -41476,18 +25317,7 @@ export class PromiseResourceV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -41496,18 +25326,7 @@ export class PromiseResourceV1beta1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -41516,18 +25335,7 @@ export class PromiseResourceV1beta1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -41547,18 +25355,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -41578,18 +25375,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -41610,18 +25396,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -41642,18 +25417,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -41674,18 +25438,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -41706,18 +25459,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -41737,18 +25479,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -41768,18 +25499,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -41799,18 +25519,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -41830,18 +25539,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -41861,18 +25559,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -41892,18 +25579,7 @@ export class PromiseResourceV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -41919,18 +25595,7 @@ export class PromiseResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -41946,18 +25611,7 @@ export class PromiseResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -41974,18 +25628,7 @@ export class PromiseResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -42002,18 +25645,7 @@ export class PromiseResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -42030,18 +25662,7 @@ export class PromiseResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -42058,18 +25679,7 @@ export class PromiseResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -42086,18 +25696,7 @@ export class PromiseResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -42114,18 +25713,7 @@ export class PromiseResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -42141,18 +25729,7 @@ export class PromiseResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -42168,18 +25745,7 @@ export class PromiseResourceV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -42190,18 +25756,7 @@ export class PromiseResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readDeviceClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -42212,18 +25767,7 @@ export class PromiseResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readDeviceClass(name, pretty, observableOptions); return result.toPromise(); } @@ -42235,18 +25779,7 @@ export class PromiseResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -42258,18 +25791,7 @@ export class PromiseResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaim(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -42281,18 +25803,7 @@ export class PromiseResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -42304,18 +25815,7 @@ export class PromiseResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -42327,18 +25827,7 @@ export class PromiseResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -42350,18 +25839,7 @@ export class PromiseResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimTemplate(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -42372,18 +25850,7 @@ export class PromiseResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readResourceSliceWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -42394,18 +25861,7 @@ export class PromiseResourceV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readResourceSlice(name, pretty, observableOptions); return result.toPromise(); } @@ -42420,18 +25876,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42446,18 +25891,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42473,18 +25907,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42500,18 +25923,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42527,18 +25939,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42554,18 +25955,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42581,18 +25971,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42608,18 +25987,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42634,18 +26002,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42660,18 +26017,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42704,18 +26050,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42729,18 +26064,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42755,18 +26079,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42781,18 +26094,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42807,18 +26109,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42833,18 +26124,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42858,18 +26138,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42883,18 +26152,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -42918,18 +26176,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -42953,18 +26200,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -42989,18 +26225,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -43025,18 +26250,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -43061,18 +26275,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -43097,18 +26300,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -43132,18 +26324,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -43167,18 +26348,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -43195,18 +26365,7 @@ export class PromiseResourceV1beta2Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -43223,18 +26382,7 @@ export class PromiseResourceV1beta2Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -43252,18 +26400,7 @@ export class PromiseResourceV1beta2Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -43281,18 +26418,7 @@ export class PromiseResourceV1beta2Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -43310,18 +26436,7 @@ export class PromiseResourceV1beta2Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -43339,18 +26454,7 @@ export class PromiseResourceV1beta2Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -43367,18 +26471,7 @@ export class PromiseResourceV1beta2Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -43395,18 +26488,7 @@ export class PromiseResourceV1beta2Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -43415,18 +26497,7 @@ export class PromiseResourceV1beta2Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -43435,18 +26506,7 @@ export class PromiseResourceV1beta2Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -43466,18 +26526,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -43497,18 +26546,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -43529,18 +26567,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -43561,18 +26588,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -43593,18 +26609,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -43625,18 +26630,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -43656,18 +26650,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -43687,18 +26670,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -43718,18 +26690,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -43749,18 +26710,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -43780,18 +26730,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -43811,18 +26750,7 @@ export class PromiseResourceV1beta2Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -43838,18 +26766,7 @@ export class PromiseResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -43865,18 +26782,7 @@ export class PromiseResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -43893,18 +26799,7 @@ export class PromiseResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -43921,18 +26816,7 @@ export class PromiseResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -43949,18 +26833,7 @@ export class PromiseResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -43977,18 +26850,7 @@ export class PromiseResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -44005,18 +26867,7 @@ export class PromiseResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -44033,18 +26884,7 @@ export class PromiseResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -44060,18 +26900,7 @@ export class PromiseResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -44087,18 +26916,7 @@ export class PromiseResourceV1beta2Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -44109,18 +26927,7 @@ export class PromiseResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readDeviceClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -44131,18 +26938,7 @@ export class PromiseResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readDeviceClass(name, pretty, observableOptions); return result.toPromise(); } @@ -44154,18 +26950,7 @@ export class PromiseResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -44177,18 +26962,7 @@ export class PromiseResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaim(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -44200,18 +26974,7 @@ export class PromiseResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -44223,18 +26986,7 @@ export class PromiseResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -44246,18 +26998,7 @@ export class PromiseResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -44269,18 +27010,7 @@ export class PromiseResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedResourceClaimTemplate(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -44291,18 +27021,7 @@ export class PromiseResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readResourceSliceWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -44313,18 +27032,7 @@ export class PromiseResourceV1beta2Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readResourceSlice(name, pretty, observableOptions); return result.toPromise(); } @@ -44339,18 +27047,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -44365,18 +27062,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -44392,18 +27078,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -44419,18 +27094,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -44446,18 +27110,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -44473,18 +27126,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -44500,18 +27142,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -44527,18 +27158,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -44553,18 +27173,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -44579,18 +27188,7 @@ export class PromiseResourceV1beta2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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: V1beta2ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -44618,18 +27216,7 @@ export class PromiseSchedulingApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -44638,18 +27225,7 @@ export class PromiseSchedulingApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -44682,18 +27258,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createPriorityClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -44707,18 +27272,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createPriorityClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -44742,18 +27296,7 @@ export class PromiseSchedulingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -44777,18 +27320,7 @@ export class PromiseSchedulingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionPriorityClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -44805,18 +27337,7 @@ export class PromiseSchedulingV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deletePriorityClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -44833,18 +27354,7 @@ export class PromiseSchedulingV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -44853,18 +27363,7 @@ export class PromiseSchedulingV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -44873,18 +27372,7 @@ export class PromiseSchedulingV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -44904,18 +27392,7 @@ export class PromiseSchedulingV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -44935,18 +27412,7 @@ export class PromiseSchedulingV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -44962,18 +27428,7 @@ export class PromiseSchedulingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchPriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -44989,18 +27444,7 @@ export class PromiseSchedulingV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchPriorityClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -45011,18 +27455,7 @@ export class PromiseSchedulingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readPriorityClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -45033,18 +27466,7 @@ export class PromiseSchedulingV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readPriorityClass(name, pretty, observableOptions); return result.toPromise(); } @@ -45059,18 +27481,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replacePriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -45085,18 +27496,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replacePriorityClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -45124,18 +27524,7 @@ export class PromiseStorageApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -45144,18 +27533,7 @@ export class PromiseStorageApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -45188,18 +27566,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createCSIDriverWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -45213,18 +27580,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createCSIDriver(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -45238,18 +27594,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createCSINodeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -45263,18 +27608,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createCSINode(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -45289,18 +27623,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedCSIStorageCapacityWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -45315,18 +27638,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createNamespacedCSIStorageCapacity(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -45340,18 +27652,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createStorageClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -45365,18 +27666,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createStorageClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -45390,18 +27680,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createVolumeAttachmentWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -45415,18 +27694,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createVolumeAttachment(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -45443,18 +27711,7 @@ export class PromiseStorageV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteCSIDriverWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -45471,18 +27728,7 @@ export class PromiseStorageV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -45499,18 +27745,7 @@ export class PromiseStorageV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteCSINodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -45527,18 +27762,7 @@ export class PromiseStorageV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -45562,18 +27786,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionCSIDriverWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -45597,18 +27810,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionCSIDriver(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -45632,18 +27834,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionCSINodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -45667,18 +27858,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionCSINode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -45703,18 +27883,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -45739,18 +27908,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); 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(); } @@ -45774,18 +27932,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionStorageClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -45809,18 +27956,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionStorageClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -45844,18 +27980,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -45879,18 +28004,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionVolumeAttachment(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -45908,18 +28022,7 @@ export class PromiseStorageV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -45937,18 +28040,7 @@ export class PromiseStorageV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -45965,18 +28057,7 @@ export class PromiseStorageV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -45993,18 +28074,7 @@ export class PromiseStorageV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -46021,18 +28091,7 @@ export class PromiseStorageV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -46049,18 +28108,7 @@ export class PromiseStorageV1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -46069,18 +28117,7 @@ export class PromiseStorageV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -46089,18 +28126,7 @@ export class PromiseStorageV1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -46120,18 +28146,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -46151,18 +28166,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listCSIDriver(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -46182,18 +28186,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -46213,18 +28206,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listCSINode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -46244,18 +28226,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -46275,18 +28246,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -46307,18 +28267,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -46339,18 +28288,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listNamespacedCSIStorageCapacity(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -46370,18 +28308,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -46401,18 +28328,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -46432,18 +28348,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -46463,18 +28368,7 @@ export class PromiseStorageV1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -46490,18 +28384,7 @@ export class PromiseStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -46517,18 +28400,7 @@ export class PromiseStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchCSIDriver(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -46544,18 +28416,7 @@ export class PromiseStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -46571,18 +28432,7 @@ export class PromiseStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchCSINode(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -46599,18 +28449,7 @@ export class PromiseStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -46627,18 +28466,7 @@ export class PromiseStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -46654,18 +28482,7 @@ export class PromiseStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -46681,18 +28498,7 @@ export class PromiseStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchStorageClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -46708,18 +28514,7 @@ export class PromiseStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -46735,18 +28530,7 @@ export class PromiseStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -46762,18 +28546,7 @@ export class PromiseStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -46789,18 +28562,7 @@ export class PromiseStorageV1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -46811,18 +28573,7 @@ export class PromiseStorageV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readCSIDriverWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -46833,18 +28584,7 @@ export class PromiseStorageV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readCSIDriver(name, pretty, observableOptions); return result.toPromise(); } @@ -46855,18 +28595,7 @@ export class PromiseStorageV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readCSINodeWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -46877,18 +28606,7 @@ export class PromiseStorageV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readCSINode(name, pretty, observableOptions); return result.toPromise(); } @@ -46900,18 +28618,7 @@ export class PromiseStorageV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -46923,18 +28630,7 @@ export class PromiseStorageV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readNamespacedCSIStorageCapacity(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -46945,18 +28641,7 @@ export class PromiseStorageV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readStorageClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -46967,18 +28652,7 @@ export class PromiseStorageV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readStorageClass(name, pretty, observableOptions); return result.toPromise(); } @@ -46989,18 +28663,7 @@ export class PromiseStorageV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readVolumeAttachmentWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -47011,18 +28674,7 @@ export class PromiseStorageV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readVolumeAttachment(name, pretty, observableOptions); return result.toPromise(); } @@ -47033,18 +28685,7 @@ export class PromiseStorageV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readVolumeAttachmentStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -47055,18 +28696,7 @@ export class PromiseStorageV1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readVolumeAttachmentStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -47081,18 +28711,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47107,18 +28726,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceCSIDriver(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47133,18 +28741,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47159,18 +28756,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceCSINode(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47186,18 +28772,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47213,18 +28788,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47239,18 +28803,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47265,18 +28818,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceStorageClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47291,18 +28833,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47317,18 +28848,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47343,18 +28863,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47369,18 +28878,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47413,18 +28911,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createVolumeAttributesClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47438,18 +28925,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47473,18 +28949,7 @@ export class PromiseStorageV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -47508,18 +28973,7 @@ export class PromiseStorageV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -47536,18 +28990,7 @@ export class PromiseStorageV1alpha1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteVolumeAttributesClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -47564,18 +29007,7 @@ export class PromiseStorageV1alpha1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -47584,18 +29016,7 @@ export class PromiseStorageV1alpha1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -47604,18 +29025,7 @@ export class PromiseStorageV1alpha1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -47635,18 +29045,7 @@ export class PromiseStorageV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -47666,18 +29065,7 @@ export class PromiseStorageV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -47693,18 +29081,7 @@ export class PromiseStorageV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -47720,18 +29097,7 @@ export class PromiseStorageV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -47742,18 +29108,7 @@ export class PromiseStorageV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readVolumeAttributesClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -47764,18 +29119,7 @@ export class PromiseStorageV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readVolumeAttributesClass(name, pretty, observableOptions); return result.toPromise(); } @@ -47790,18 +29134,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47816,18 +29149,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47860,18 +29182,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createVolumeAttributesClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47885,18 +29196,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -47920,18 +29220,7 @@ export class PromiseStorageV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -47955,18 +29244,7 @@ export class PromiseStorageV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -47983,18 +29261,7 @@ export class PromiseStorageV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteVolumeAttributesClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -48011,18 +29278,7 @@ export class PromiseStorageV1beta1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -48031,18 +29287,7 @@ export class PromiseStorageV1beta1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -48051,18 +29296,7 @@ export class PromiseStorageV1beta1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -48082,18 +29316,7 @@ export class PromiseStorageV1beta1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -48113,18 +29336,7 @@ export class PromiseStorageV1beta1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -48140,18 +29352,7 @@ export class PromiseStorageV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -48167,18 +29368,7 @@ export class PromiseStorageV1beta1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -48189,18 +29379,7 @@ export class PromiseStorageV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readVolumeAttributesClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -48211,18 +29390,7 @@ export class PromiseStorageV1beta1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readVolumeAttributesClass(name, pretty, observableOptions); return result.toPromise(); } @@ -48237,18 +29405,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -48263,18 +29420,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -48302,18 +29448,7 @@ export class PromiseStoragemigrationApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } @@ -48322,18 +29457,7 @@ export class PromiseStoragemigrationApi { * get information of a group */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -48366,18 +29490,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createStorageVersionMigrationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -48391,18 +29504,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.createStorageVersionMigration(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -48426,18 +29528,7 @@ export class PromiseStoragemigrationV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionStorageVersionMigrationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -48461,18 +29552,7 @@ export class PromiseStoragemigrationV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.deleteCollectionStorageVersionMigration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -48489,18 +29569,7 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteStorageVersionMigrationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -48517,18 +29586,7 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [body] */ 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 observableOptions = wrapOptions(_options); const result = this.api.deleteStorageVersionMigration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -48537,18 +29595,7 @@ export class PromiseStoragemigrationV1alpha1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } @@ -48557,18 +29604,7 @@ export class PromiseStoragemigrationV1alpha1Api { * get available resources */ 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 observableOptions = wrapOptions(_options); const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -48588,18 +29624,7 @@ export class PromiseStoragemigrationV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listStorageVersionMigrationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -48619,18 +29644,7 @@ export class PromiseStoragemigrationV1alpha1Api { * @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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.listStorageVersionMigration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -48646,18 +29660,7 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchStorageVersionMigrationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -48673,18 +29676,7 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -48700,18 +29692,7 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchStorageVersionMigrationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -48727,18 +29708,7 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [force] Force is going to \"force\" Apply 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.patchStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -48749,18 +29719,7 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readStorageVersionMigrationWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -48771,18 +29730,7 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readStorageVersionMigration(name, pretty, observableOptions); return result.toPromise(); } @@ -48793,18 +29741,7 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise> { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readStorageVersionMigrationStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -48815,18 +29752,7 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [pretty] If \'true\', then 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?: PromiseConfigurationOptions): Promise { - let observableOptions: undefined | ConfigurationOptions - if (_options){ - observableOptions = { - baseServer: _options.baseServer, - httpApi: _options.httpApi, - middleware: _options.middleware?.map( - m => new PromiseMiddlewareWrapper(m) - ), - middlewareMergeStrategy: _options.middlewareMergeStrategy, - authMethods: _options.authMethods - } - } + const observableOptions = wrapOptions(_options); const result = this.api.readStorageVersionMigrationStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -48841,18 +29767,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceStorageVersionMigrationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -48867,18 +29782,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -48893,18 +29797,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceStorageVersionMigrationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -48919,18 +29812,7 @@ 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. */ 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 observableOptions = wrapOptions(_options); const result = this.api.replaceStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -48958,18 +29840,7 @@ export class PromiseVersionApi { * get the version information for this server */ 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 observableOptions = wrapOptions(_options); const result = this.api.getCodeWithHttpInfo(observableOptions); return result.toPromise(); } @@ -48978,18 +29849,7 @@ export class PromiseVersionApi { * get the version information for this server */ 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 observableOptions = wrapOptions(_options); const result = this.api.getCode(observableOptions); return result.toPromise(); } @@ -49017,18 +29877,7 @@ export class PromiseWellKnownApi { * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' */ 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 observableOptions = wrapOptions(_options); const result = this.api.getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(observableOptions); return result.toPromise(); } @@ -49037,18 +29886,7 @@ export class PromiseWellKnownApi { * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' */ 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 observableOptions = wrapOptions(_options); const result = this.api.getServiceAccountIssuerOpenIDConfiguration(observableOptions); return result.toPromise(); } From adb26a115ec42fd75ba830eed9f3705a300e0c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Str=C3=BCbing?= Date: Wed, 13 Aug 2025 08:08:44 +0000 Subject: [PATCH 055/143] chore: update node-fetch and node-fetch types --- package-lock.json | 12 ++++++------ package.json | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index ed3aa91882..c99cc53b46 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,14 +11,14 @@ "dependencies": { "@types/js-yaml": "^4.0.1", "@types/node": "^24.0.0", - "@types/node-fetch": "^2.6.9", + "@types/node-fetch": "^2.6.13", "@types/stream-buffers": "^3.0.3", "form-data": "^4.0.0", "hpagent": "^1.2.0", "isomorphic-ws": "^5.0.0", "js-yaml": "^4.1.0", "jsonpath-plus": "^10.3.0", - "node-fetch": "^2.6.9", + "node-fetch": "^2.7.0", "openid-client": "^6.1.3", "rfc4648": "^1.3.0", "socks-proxy-agent": "^8.0.4", @@ -1032,13 +1032,13 @@ } }, "node_modules/@types/node-fetch": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.12.tgz", - "integrity": "sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==", + "version": "2.6.13", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.13.tgz", + "integrity": "sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==", "license": "MIT", "dependencies": { "@types/node": "*", - "form-data": "^4.0.0" + "form-data": "^4.0.4" } }, "node_modules/@types/stream-buffers": { diff --git a/package.json b/package.json index f3251039bc..9903e21cd6 100644 --- a/package.json +++ b/package.json @@ -57,14 +57,14 @@ "dependencies": { "@types/js-yaml": "^4.0.1", "@types/node": "^24.0.0", - "@types/node-fetch": "^2.6.9", + "@types/node-fetch": "^2.6.13", "@types/stream-buffers": "^3.0.3", "form-data": "^4.0.0", "hpagent": "^1.2.0", "isomorphic-ws": "^5.0.0", "js-yaml": "^4.1.0", "jsonpath-plus": "^10.3.0", - "node-fetch": "^2.6.9", + "node-fetch": "^2.7.0", "openid-client": "^6.1.3", "rfc4648": "^1.3.0", "socks-proxy-agent": "^8.0.4", From 5351aba23eb6a79c5ff97af63a3226fa5749ce46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Str=C3=BCbing?= Date: Thu, 14 Aug 2025 06:57:59 +0000 Subject: [PATCH 056/143] chore: adjust tsconfig --- tsconfig-with-tests.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tsconfig-with-tests.json b/tsconfig-with-tests.json index 98928a3edd..0542a3e9d5 100644 --- a/tsconfig-with-tests.json +++ b/tsconfig-with-tests.json @@ -1,4 +1,9 @@ { "extends": "./tsconfig.json", - "exclude": [] + "exclude": [], + "compilerOptions": { + "paths": { + "node-fetch/externals": ["./node_modules/@types/node-fetch/externals.d.ts"] + } + } } From cf7e03a5bd1a10ef7cbf73ca10b2e5ec52de5f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Str=C3=BCbing?= Date: Thu, 14 Aug 2025 07:00:39 +0000 Subject: [PATCH 057/143] chore: adjust tsconfig --- tsconfig.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 20caf8fc24..18424c2e5c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,10 @@ "importHelpers": true, "skipLibCheck": true, "esModuleInterop": true, - "useDefineForClassFields": false + "useDefineForClassFields": false, + "paths": { + "node-fetch/externals": ["./node_modules/@types/node-fetch/externals.d.ts"] + } // enable this in the future // "declarationMap": true }, From 8e850a9003baadcdd58136083d6e17fb38679f0d Mon Sep 17 00:00:00 2001 From: 0x5457 <0x5457@protonmail.com> Date: Mon, 18 Aug 2025 00:27:08 +0800 Subject: [PATCH 058/143] fix: respect NODE_TLS_REJECT_UNAUTHORIZED environment variable --- package-lock.json | 24 ++++++++++++++++++++ package.json | 1 + src/config.ts | 8 +++++-- src/config_test.ts | 55 +++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 85 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 95fbade6e0..5e1649e213 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,6 +37,7 @@ "nock": "^14.0.5", "prettier": "^3.0.0", "pretty-quick": "^4.0.0", + "selfsigned": "^3.0.1", "ts-mockito": "^2.3.1", "tsx": "^4.19.1", "typedoc": "^0.28.0", @@ -3007,6 +3008,16 @@ } } }, + "node_modules/node-forge": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "dev": true, + "license": "(BSD-3-Clause OR GPL-2.0)", + "engines": { + "node": ">= 6.13.0" + } + }, "node_modules/oauth4webapi": { "version": "3.7.0", "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.7.0.tgz", @@ -3386,6 +3397,19 @@ "queue-microtask": "^1.2.2" } }, + "node_modules/selfsigned": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-3.0.1.tgz", + "integrity": "sha512-6U6w6kSLrM9Zxo0D7mC7QdGS6ZZytMWBnj/vhF9p+dAHx6CwGezuRcO4VclTbrrI7mg7SD6zNiqXUuBHOVopNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "node-forge": "^1" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/semver": { "version": "7.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", diff --git a/package.json b/package.json index 9903e21cd6..34a01fa96c 100644 --- a/package.json +++ b/package.json @@ -83,6 +83,7 @@ "nock": "^14.0.5", "prettier": "^3.0.0", "pretty-quick": "^4.0.0", + "selfsigned": "^3.0.1", "ts-mockito": "^2.3.1", "tsx": "^4.19.1", "typedoc": "^0.28.0", diff --git a/src/config.ts b/src/config.ts index 6c0dd335c4..dfa2d58c67 100644 --- a/src/config.ts +++ b/src/config.ts @@ -202,7 +202,9 @@ export class KubeConfig implements SecurityAuthentication { agentOptions.key = opts.key; agentOptions.pfx = opts.pfx; agentOptions.passphrase = opts.passphrase; - agentOptions.rejectUnauthorized = opts.rejectUnauthorized; + if (opts.rejectUnauthorized !== undefined) { + agentOptions.rejectUnauthorized = opts.rejectUnauthorized; + } // The ws docs say that it accepts anything that https.RequestOptions accepts, // but Typescript doesn't understand that idea (yet) probably could be fixed in // the typings, but for now just cast to any @@ -259,7 +261,9 @@ export class KubeConfig implements SecurityAuthentication { agentOptions.key = httpsOptions.key; agentOptions.pfx = httpsOptions.pfx; agentOptions.passphrase = httpsOptions.passphrase; - agentOptions.rejectUnauthorized = httpsOptions.rejectUnauthorized; + if (httpsOptions.rejectUnauthorized !== undefined) { + agentOptions.rejectUnauthorized = httpsOptions.rejectUnauthorized; + } context.setAgent(this.createAgent(cluster, agentOptions)); } diff --git a/src/config_test.ts b/src/config_test.ts index 96e126a09b..0cc26c5bda 100644 --- a/src/config_test.ts +++ b/src/config_test.ts @@ -18,7 +18,7 @@ import { fileURLToPath } from 'node:url'; import mockfs from 'mock-fs'; import { Authenticator } from './auth.js'; -import { Headers } from 'node-fetch'; +import fetch, { Headers } from 'node-fetch'; import { HttpMethod } from './index.js'; import { assertRequestAgentsEqual, assertRequestOptionsEqual } from './test/match-buffer.js'; import { CoreV1Api, RequestContext } from './api.js'; @@ -27,6 +27,8 @@ import { ActionOnInvalid, Cluster, newClusters, newContexts, newUsers, User } fr import { ExecAuth } from './exec_auth.js'; import { HttpProxyAgent, HttpsProxyAgent } from 'hpagent'; import { SocksProxyAgent } from 'socks-proxy-agent'; +import { AddressInfo } from 'node:net'; +import selfsigned from 'selfsigned'; const kcFileName = 'testdata/kubeconfig.yaml'; const kc2FileName = 'testdata/kubeconfig-2.yaml'; @@ -491,6 +493,28 @@ describe('KubeConfig', () => { strictEqual(rc.getAgent() instanceof https.Agent, true); }); + + it('should apply NODE_TLS_REJECT_UNAUTHORIZED from environment to agent', async () => { + const { server, host, port } = await createTestHttpsServer(); + const originalValue = process.env.NODE_TLS_REJECT_UNAUTHORIZED; + process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; + after(() => { + server.close(); + process.env.NODE_TLS_REJECT_UNAUTHORIZED = originalValue; + }); + + const kc = new KubeConfig(); + const rc = new RequestContext(`https://${host}:${port}`, HttpMethod.GET); + await kc.applySecurityAuthentication(rc); + const res = await fetch(`https://${host}:${port}`, { agent: rc.getAgent() }); + strictEqual(res.status, 200); + strictEqual(await res.text(), 'OK'); + + const res2 = await fetch(`https://${host}:${port}`, await kc.applyToFetchOptions({})); + strictEqual(res2.status, 200); + strictEqual(await res2.text(), 'OK'); + delete process.env.NODE_TLS_REJECT_UNAUTHORIZED; + }); }); describe('loadClusterConfigObjects', () => { @@ -1827,3 +1851,32 @@ describe('KubeConfig', () => { }); }); }); + +// create a self-signed HTTPS test server +async function createTestHttpsServer(): Promise<{ + server: https.Server; + host: string; + port: number; + ca: string; +}> { + const host = 'localhost'; + const { private: key, cert } = selfsigned.generate([{ name: 'commonName', value: host }]); + + const server = https.createServer({ key, cert }, (_req, res) => { + res.writeHead(200); + res.end('OK'); + }); + + const port = await new Promise((resolve) => { + server.listen(0, () => { + resolve((server.address() as AddressInfo).port); + }); + }); + + return { + server, + host, + port, + ca: cert, // ca is the same as cert here + }; +} From 58797a1a13b0d911c5619b5826b1f43f78bc87b2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 03:59:39 +0000 Subject: [PATCH 059/143] build(deps): bump @types/node from 24.2.1 to 24.3.0 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.2.1 to 24.3.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.3.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 95fbade6e0..788bdf4701 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1023,9 +1023,9 @@ } }, "node_modules/@types/node": { - "version": "24.2.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.2.1.tgz", - "integrity": "sha512-DRh5K+ka5eJic8CjH7td8QpYEV6Zo10gfRkjHCO3weqZHWDtAaSTFtl4+VMqOJ4N5jcuhZ9/l+yy8rVgw7BQeQ==", + "version": "24.3.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.0.tgz", + "integrity": "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==", "license": "MIT", "dependencies": { "undici-types": "~7.10.0" From 3a90635f1f9ae8035e9ede9f6828f1269d6a0f56 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Aug 2025 12:58:39 +0000 Subject: [PATCH 060/143] build(deps-dev): bump typescript-eslint from 8.39.1 to 8.40.0 Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.39.1 to 8.40.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.40.0/packages/typescript-eslint) --- updated-dependencies: - dependency-name: typescript-eslint dependency-version: 8.40.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 122 +++++++++++++++++++++++----------------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/package-lock.json b/package-lock.json index 788bdf4701..979cc9b27b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1058,17 +1058,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.39.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.39.1.tgz", - "integrity": "sha512-yYegZ5n3Yr6eOcqgj2nJH8cH/ZZgF+l0YIdKILSDjYFRjgYQMgv/lRjV5Z7Up04b9VYUondt8EPMqg7kTWgJ2g==", + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.40.0.tgz", + "integrity": "sha512-w/EboPlBwnmOBtRbiOvzjD+wdiZdgFeo17lkltrtn7X37vagKKWJABvyfsJXTlHe6XBzugmYgd4A4nW+k8Mixw==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.39.1", - "@typescript-eslint/type-utils": "8.39.1", - "@typescript-eslint/utils": "8.39.1", - "@typescript-eslint/visitor-keys": "8.39.1", + "@typescript-eslint/scope-manager": "8.40.0", + "@typescript-eslint/type-utils": "8.40.0", + "@typescript-eslint/utils": "8.40.0", + "@typescript-eslint/visitor-keys": "8.40.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", @@ -1082,7 +1082,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.39.1", + "@typescript-eslint/parser": "^8.40.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } @@ -1098,16 +1098,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.39.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.39.1.tgz", - "integrity": "sha512-pUXGCuHnnKw6PyYq93lLRiZm3vjuslIy7tus1lIQTYVK9bL8XBgJnCWm8a0KcTtHC84Yya1Q6rtll+duSMj0dg==", + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.40.0.tgz", + "integrity": "sha512-jCNyAuXx8dr5KJMkecGmZ8KI61KBUhkCob+SD+C+I5+Y1FWI2Y3QmY4/cxMCC5WAsZqoEtEETVhUiUMIGCf6Bw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.39.1", - "@typescript-eslint/types": "8.39.1", - "@typescript-eslint/typescript-estree": "8.39.1", - "@typescript-eslint/visitor-keys": "8.39.1", + "@typescript-eslint/scope-manager": "8.40.0", + "@typescript-eslint/types": "8.40.0", + "@typescript-eslint/typescript-estree": "8.40.0", + "@typescript-eslint/visitor-keys": "8.40.0", "debug": "^4.3.4" }, "engines": { @@ -1123,14 +1123,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.39.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.39.1.tgz", - "integrity": "sha512-8fZxek3ONTwBu9ptw5nCKqZOSkXshZB7uAxuFF0J/wTMkKydjXCzqqga7MlFMpHi9DoG4BadhmTkITBcg8Aybw==", + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.40.0.tgz", + "integrity": "sha512-/A89vz7Wf5DEXsGVvcGdYKbVM9F7DyFXj52lNYUDS1L9yJfqjW/fIp5PgMuEJL/KeqVTe2QSbXAGUZljDUpArw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.39.1", - "@typescript-eslint/types": "^8.39.1", + "@typescript-eslint/tsconfig-utils": "^8.40.0", + "@typescript-eslint/types": "^8.40.0", "debug": "^4.3.4" }, "engines": { @@ -1145,14 +1145,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.39.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.39.1.tgz", - "integrity": "sha512-RkBKGBrjgskFGWuyUGz/EtD8AF/GW49S21J8dvMzpJitOF1slLEbbHnNEtAHtnDAnx8qDEdRrULRnWVx27wGBw==", + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.40.0.tgz", + "integrity": "sha512-y9ObStCcdCiZKzwqsE8CcpyuVMwRouJbbSrNuThDpv16dFAj429IkM6LNb1dZ2m7hK5fHyzNcErZf7CEeKXR4w==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.39.1", - "@typescript-eslint/visitor-keys": "8.39.1" + "@typescript-eslint/types": "8.40.0", + "@typescript-eslint/visitor-keys": "8.40.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1163,9 +1163,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.39.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.39.1.tgz", - "integrity": "sha512-ePUPGVtTMR8XMU2Hee8kD0Pu4NDE1CN9Q1sxGSGd/mbOtGZDM7pnhXNJnzW63zk/q+Z54zVzj44HtwXln5CvHA==", + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.40.0.tgz", + "integrity": "sha512-jtMytmUaG9d/9kqSl/W3E3xaWESo4hFDxAIHGVW/WKKtQhesnRIJSAJO6XckluuJ6KDB5woD1EiqknriCtAmcw==", "dev": true, "license": "MIT", "engines": { @@ -1180,15 +1180,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.39.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.39.1.tgz", - "integrity": "sha512-gu9/ahyatyAdQbKeHnhT4R+y3YLtqqHyvkfDxaBYk97EcbfChSJXyaJnIL3ygUv7OuZatePHmQvuH5ru0lnVeA==", + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.40.0.tgz", + "integrity": "sha512-eE60cK4KzAc6ZrzlJnflXdrMqOBaugeukWICO2rB0KNvwdIMaEaYiywwHMzA1qFpTxrLhN9Lp4E/00EgWcD3Ow==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.39.1", - "@typescript-eslint/typescript-estree": "8.39.1", - "@typescript-eslint/utils": "8.39.1", + "@typescript-eslint/types": "8.40.0", + "@typescript-eslint/typescript-estree": "8.40.0", + "@typescript-eslint/utils": "8.40.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, @@ -1205,9 +1205,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.39.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.39.1.tgz", - "integrity": "sha512-7sPDKQQp+S11laqTrhHqeAbsCfMkwJMrV7oTDvtDds4mEofJYir414bYKUEb8YPUm9QL3U+8f6L6YExSoAGdQw==", + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.40.0.tgz", + "integrity": "sha512-ETdbFlgbAmXHyFPwqUIYrfc12ArvpBhEVgGAxVYSwli26dn8Ko+lIo4Su9vI9ykTZdJn+vJprs/0eZU0YMAEQg==", "dev": true, "license": "MIT", "engines": { @@ -1219,16 +1219,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.39.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.39.1.tgz", - "integrity": "sha512-EKkpcPuIux48dddVDXyQBlKdeTPMmALqBUbEk38McWv0qVEZwOpVJBi7ugK5qVNgeuYjGNQxrrnoM/5+TI/BPw==", + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.40.0.tgz", + "integrity": "sha512-k1z9+GJReVVOkc1WfVKs1vBrR5MIKKbdAjDTPvIK3L8De6KbFfPFt6BKpdkdk7rZS2GtC/m6yI5MYX+UsuvVYQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.39.1", - "@typescript-eslint/tsconfig-utils": "8.39.1", - "@typescript-eslint/types": "8.39.1", - "@typescript-eslint/visitor-keys": "8.39.1", + "@typescript-eslint/project-service": "8.40.0", + "@typescript-eslint/tsconfig-utils": "8.40.0", + "@typescript-eslint/types": "8.40.0", + "@typescript-eslint/visitor-keys": "8.40.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1248,16 +1248,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.39.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.39.1.tgz", - "integrity": "sha512-VF5tZ2XnUSTuiqZFXCZfZs1cgkdd3O/sSYmdo2EpSyDlC86UM/8YytTmKnehOW3TGAlivqTDT6bS87B/GQ/jyg==", + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.40.0.tgz", + "integrity": "sha512-Cgzi2MXSZyAUOY+BFwGs17s7ad/7L+gKt6Y8rAVVWS+7o6wrjeFN4nVfTpbE25MNcxyJ+iYUXflbs2xR9h4UBg==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.39.1", - "@typescript-eslint/types": "8.39.1", - "@typescript-eslint/typescript-estree": "8.39.1" + "@typescript-eslint/scope-manager": "8.40.0", + "@typescript-eslint/types": "8.40.0", + "@typescript-eslint/typescript-estree": "8.40.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1272,13 +1272,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.39.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.39.1.tgz", - "integrity": "sha512-W8FQi6kEh2e8zVhQ0eeRnxdvIoOkAp/CPAahcNio6nO9dsIwb9b34z90KOlheoyuVf6LSOEdjlkxSkapNEc+4A==", + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.40.0.tgz", + "integrity": "sha512-8CZ47QwalyRjsypfwnbI3hKy5gJDPmrkLjkgMxhi0+DZZ2QNx2naS6/hWoVYUHU7LU2zleF68V9miaVZvhFfTA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.39.1", + "@typescript-eslint/types": "8.40.0", "eslint-visitor-keys": "^4.2.1" }, "engines": { @@ -3813,16 +3813,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.39.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.39.1.tgz", - "integrity": "sha512-GDUv6/NDYngUlNvwaHM1RamYftxf782IyEDbdj3SeaIHHv8fNQVRC++fITT7kUJV/5rIA/tkoRSSskt6osEfqg==", + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.40.0.tgz", + "integrity": "sha512-Xvd2l+ZmFDPEt4oj1QEXzA4A2uUK6opvKu3eGN9aGjB8au02lIVcLyi375w94hHyejTOmzIU77L8ol2sRg9n7Q==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.39.1", - "@typescript-eslint/parser": "8.39.1", - "@typescript-eslint/typescript-estree": "8.39.1", - "@typescript-eslint/utils": "8.39.1" + "@typescript-eslint/eslint-plugin": "8.40.0", + "@typescript-eslint/parser": "8.40.0", + "@typescript-eslint/typescript-estree": "8.40.0", + "@typescript-eslint/utils": "8.40.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" From 14908014c3db4fb4d5a3d7a422e50d9760d28091 Mon Sep 17 00:00:00 2001 From: David Gamero Date: Tue, 19 Aug 2025 18:53:30 +0000 Subject: [PATCH 061/143] regen --- settings | 2 +- src/gen/.openapi-generator/COMMIT | 4 ++-- src/gen/http/http.ts | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/settings b/settings index 4954878e7e..06c43a14ef 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=3e032bfcfd74b03f33fa5fb3d073286daf5cdbe1 +export OPENAPI_GENERATOR_COMMIT=d06ed32df0a30fe12a1c7ba98722c12e867b6060 diff --git a/src/gen/.openapi-generator/COMMIT b/src/gen/.openapi-generator/COMMIT index 2e148d692c..a56708a808 100644 --- a/src/gen/.openapi-generator/COMMIT +++ b/src/gen/.openapi-generator/COMMIT @@ -1,2 +1,2 @@ -Requested Commit/Tag : 3e032bfcfd74b03f33fa5fb3d073286daf5cdbe1 -Actual Commit : 3e032bfcfd74b03f33fa5fb3d073286daf5cdbe1 +Requested Commit/Tag : d06ed32df0a30fe12a1c7ba98722c12e867b6060 +Actual Commit : d06ed32df0a30fe12a1c7ba98722c12e867b6060 diff --git a/src/gen/http/http.ts b/src/gen/http/http.ts index 525eee647c..79bcf792e0 100644 --- a/src/gen/http/http.ts +++ b/src/gen/http/http.ts @@ -3,7 +3,6 @@ import FormData from "form-data"; import { URL, URLSearchParams } from 'url'; import * as http from 'http'; import * as https from 'https'; -import { AbortSignal } from "node-fetch/externals"; import { Observable, from } from '../rxjsStub.js'; export * from './isomorphic-fetch.js'; From 0ae5ddfbdd5ea9f31b40c458b936f1dcdba94f59 Mon Sep 17 00:00:00 2001 From: David Gamero Date: Tue, 19 Aug 2025 18:58:40 +0000 Subject: [PATCH 062/143] update test --- src/watch.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/watch.ts b/src/watch.ts index 98db927d45..4c51399a62 100644 --- a/src/watch.ts +++ b/src/watch.ts @@ -39,9 +39,10 @@ export class Watch { const requestInit = await this.config.applyToFetchOptions({}); const controller = new AbortController(); + const timeoutSignal = AbortSignal.timeout(30000); + requestInit.signal = AbortSignal.any([controller.signal, timeoutSignal]); requestInit.signal = controller.signal as AbortSignal; requestInit.method = 'GET'; - requestInit.timeout = 30000; let doneCalled: boolean = false; const doneCallOnce = (err: any) => { From ee9c46043ca336d7fccb8f3dccbbd2a9948eceb5 Mon Sep 17 00:00:00 2001 From: 0x5457 <0x5457@protonmail.com> Date: Wed, 20 Aug 2025 11:02:05 +0800 Subject: [PATCH 063/143] test: use real Kubernetes client in NODE_TLS_REJECT_UNAUTHORIZED test --- src/config_test.ts | 61 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 50 insertions(+), 11 deletions(-) diff --git a/src/config_test.ts b/src/config_test.ts index 0cc26c5bda..5634cffa05 100644 --- a/src/config_test.ts +++ b/src/config_test.ts @@ -495,7 +495,29 @@ describe('KubeConfig', () => { }); it('should apply NODE_TLS_REJECT_UNAUTHORIZED from environment to agent', async () => { - const { server, host, port } = await createTestHttpsServer(); + const { server, host, port } = await createTestHttpsServer((req, res) => { + res.setHeader('Content-Type', 'application/json'); + if (req.url?.includes('/api/v1/namespaces')) { + res.writeHead(200); + res.end( + JSON.stringify({ + apiVersion: 'v1', + kind: 'NamespaceList', + items: [ + { + apiVersion: 'v1', + kind: 'Namespace', + metadata: { name: 'default' }, + }, + ], + }), + ); + } else { + res.writeHead(200); + res.end('ok'); + } + }); + const originalValue = process.env.NODE_TLS_REJECT_UNAUTHORIZED; process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; after(() => { @@ -504,15 +526,28 @@ describe('KubeConfig', () => { }); const kc = new KubeConfig(); - const rc = new RequestContext(`https://${host}:${port}`, HttpMethod.GET); - await kc.applySecurityAuthentication(rc); - const res = await fetch(`https://${host}:${port}`, { agent: rc.getAgent() }); - strictEqual(res.status, 200); - strictEqual(await res.text(), 'OK'); + kc.loadFromClusterAndUser( + { + name: 'test-cluster', + server: `https://${host}:${port}`, + // ignore skipTLSVerify specified from environment variables + } as Cluster, + { + name: 'test-user', + token: 'test-token', + }, + ); + const coreV1Api = kc.makeApiClient(CoreV1Api); + const namespaceList = await coreV1Api.listNamespace(); + + strictEqual(namespaceList.kind, 'NamespaceList'); + strictEqual(namespaceList.items.length, 1); + strictEqual(namespaceList.items[0].metadata?.name, 'default'); const res2 = await fetch(`https://${host}:${port}`, await kc.applyToFetchOptions({})); strictEqual(res2.status, 200); - strictEqual(await res2.text(), 'OK'); + strictEqual(await res2.text(), 'ok'); + delete process.env.NODE_TLS_REJECT_UNAUTHORIZED; }); }); @@ -1853,7 +1888,9 @@ describe('KubeConfig', () => { }); // create a self-signed HTTPS test server -async function createTestHttpsServer(): Promise<{ +async function createTestHttpsServer( + requestHandler?: (req: http.IncomingMessage, res: http.ServerResponse) => void, +): Promise<{ server: https.Server; host: string; port: number; @@ -1862,10 +1899,12 @@ async function createTestHttpsServer(): Promise<{ const host = 'localhost'; const { private: key, cert } = selfsigned.generate([{ name: 'commonName', value: host }]); - const server = https.createServer({ key, cert }, (_req, res) => { + const defaultHandler = (req: http.IncomingMessage, res: http.ServerResponse) => { res.writeHead(200); - res.end('OK'); - }); + res.end('ok'); + }; + + const server = https.createServer({ key, cert }, requestHandler ?? defaultHandler); const port = await new Promise((resolve) => { server.listen(0, () => { From c663ee7feb5e110f72a5c7a5a55324bb23200819 Mon Sep 17 00:00:00 2001 From: David Gamero Date: Thu, 21 Aug 2025 17:15:37 +0000 Subject: [PATCH 064/143] update tsconfig --- package.json | 2 +- tsconfig-with-tests.json | 7 +------ tsconfig.json | 5 +---- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 9903e21cd6..052b8a1178 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "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", + "build-with-tests": "tsc && cp 'src/test/echo space.js' dist/test", "generate": "./generate-client.sh", "watch": "tsc --watch", "test": "c8 node --test --test-reporter=spec --import tsx src/*_test.ts", diff --git a/tsconfig-with-tests.json b/tsconfig-with-tests.json index 0542a3e9d5..98928a3edd 100644 --- a/tsconfig-with-tests.json +++ b/tsconfig-with-tests.json @@ -1,9 +1,4 @@ { "extends": "./tsconfig.json", - "exclude": [], - "compilerOptions": { - "paths": { - "node-fetch/externals": ["./node_modules/@types/node-fetch/externals.d.ts"] - } - } + "exclude": [] } diff --git a/tsconfig.json b/tsconfig.json index 18424c2e5c..20caf8fc24 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,10 +16,7 @@ "importHelpers": true, "skipLibCheck": true, "esModuleInterop": true, - "useDefineForClassFields": false, - "paths": { - "node-fetch/externals": ["./node_modules/@types/node-fetch/externals.d.ts"] - } + "useDefineForClassFields": false // enable this in the future // "declarationMap": true }, From 3754a208e86291ad02210c4151a12aee4a473149 Mon Sep 17 00:00:00 2001 From: David Gamero Date: Thu, 21 Aug 2025 17:23:05 +0000 Subject: [PATCH 065/143] revert --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 052b8a1178..9903e21cd6 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "lint": "eslint \".\" && prettier --check \"./src/**/*.ts\"", "clean": "rm -Rf node_modules/ dist/", "build": "tsc", - "build-with-tests": "tsc && cp 'src/test/echo space.js' dist/test", + "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 node --test --test-reporter=spec --import tsx src/*_test.ts", From a3d85d92fb112ac1654429159ff4da5ea948a2e8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Aug 2025 03:29:53 +0000 Subject: [PATCH 066/143] build(deps-dev): bump eslint from 9.33.0 to 9.34.0 Bumps [eslint](https://github.com/eslint/eslint) from 9.33.0 to 9.34.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v9.33.0...v9.34.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 9.34.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 979cc9b27b..524a94e6e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -629,9 +629,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.33.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.33.0.tgz", - "integrity": "sha512-5K1/mKhWaMfreBGJTwval43JJmkip0RmM+3+IuqupeSKNC/Th2Kc7ucaq5ovTSra/OOKB9c58CGSz3QMVbWt0A==", + "version": "9.34.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.34.0.tgz", + "integrity": "sha512-EoyvqQnBNsV1CWaEJ559rxXL4c8V92gxirbawSmVUOWXlsRxxQXl6LmCpdUblgxgSkDIqKnhzba2SjRTI/A5Rw==", "dev": true, "license": "MIT", "engines": { @@ -1902,9 +1902,9 @@ } }, "node_modules/eslint": { - "version": "9.33.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.33.0.tgz", - "integrity": "sha512-TS9bTNIryDzStCpJN93aC5VRSW3uTx9sClUn4B87pwiCaJh220otoI0X8mJKr+VcPtniMdN8GKjlwgWGUv5ZKA==", + "version": "9.34.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.34.0.tgz", + "integrity": "sha512-RNCHRX5EwdrESy3Jc9o8ie8Bog+PeYvvSR8sDGoZxNFTvZ4dlxUB3WzQ3bQMztFrSRODGrLLj8g6OFuGY/aiQg==", "dev": true, "license": "MIT", "dependencies": { @@ -1914,7 +1914,7 @@ "@eslint/config-helpers": "^0.3.1", "@eslint/core": "^0.15.2", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.33.0", + "@eslint/js": "9.34.0", "@eslint/plugin-kit": "^0.3.5", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", From 7dcf3625c19b1081a8b6de22e0af028f215fe9ef Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Aug 2025 03:31:44 +0000 Subject: [PATCH 067/143] build(deps-dev): bump tsx from 4.20.4 to 4.20.5 Bumps [tsx](https://github.com/privatenumber/tsx) from 4.20.4 to 4.20.5. - [Release notes](https://github.com/privatenumber/tsx/releases) - [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs) - [Commits](https://github.com/privatenumber/tsx/compare/v4.20.4...v4.20.5) --- updated-dependencies: - dependency-name: tsx dependency-version: 4.20.5 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 979cc9b27b..51d763eb46 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3742,9 +3742,9 @@ "license": "0BSD" }, "node_modules/tsx": { - "version": "4.20.4", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.4.tgz", - "integrity": "sha512-yyxBKfORQ7LuRt/BQKBXrpcq59ZvSW0XxwfjAt3w2/8PmdxaFzijtMhTawprSHhpzeM5BgU2hXHG3lklIERZXg==", + "version": "4.20.5", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.5.tgz", + "integrity": "sha512-+wKjMNU9w/EaQayHXb7WA7ZaHY6hN8WgfvHNQ3t1PnU91/7O8TcTnIhCDYTZwnt8JsO9IBqZ30Ln1r7pPF52Aw==", "dev": true, "license": "MIT", "dependencies": { From 49186ba5553d12014da29bfb7b37aacf0472e136 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 26 Aug 2025 20:56:51 +0000 Subject: [PATCH 068/143] build(deps-dev): bump typedoc from 0.28.10 to 0.28.11 Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.28.10 to 0.28.11. - [Release notes](https://github.com/TypeStrong/TypeDoc/releases) - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md) - [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.28.10...v0.28.11) --- updated-dependencies: - dependency-name: typedoc dependency-version: 0.28.11 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9790ac1e84..ca1bfe5806 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3775,9 +3775,9 @@ } }, "node_modules/typedoc": { - "version": "0.28.10", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.10.tgz", - "integrity": "sha512-zYvpjS2bNJ30SoNYfHSRaFpBMZAsL7uwKbWwqoCNFWjcPnI3e/mPLh2SneH9mX7SJxtDpvDgvd9/iZxGbo7daw==", + "version": "0.28.11", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.11.tgz", + "integrity": "sha512-1FqgrrUYGNuE3kImAiEDgAVVVacxdO4ZVTKbiOVDGkoeSB4sNwQaDpa8mta+Lw5TEzBFmGXzsg0I1NLRIoaSFw==", "dev": true, "license": "Apache-2.0", "dependencies": { From e60d06ebc9eba873819c269d2a4fbe9459d356bd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 26 Aug 2025 21:57:53 +0000 Subject: [PATCH 069/143] build(deps-dev): bump typescript-eslint from 8.40.0 to 8.41.0 Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.40.0 to 8.41.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.41.0/packages/typescript-eslint) --- updated-dependencies: - dependency-name: typescript-eslint dependency-version: 8.41.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 122 +++++++++++++++++++++++----------------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9790ac1e84..e283a9c909 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1058,17 +1058,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.40.0.tgz", - "integrity": "sha512-w/EboPlBwnmOBtRbiOvzjD+wdiZdgFeo17lkltrtn7X37vagKKWJABvyfsJXTlHe6XBzugmYgd4A4nW+k8Mixw==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.41.0.tgz", + "integrity": "sha512-8fz6oa6wEKZrhXWro/S3n2eRJqlRcIa6SlDh59FXJ5Wp5XRZ8B9ixpJDcjadHq47hMx0u+HW6SNa6LjJQ6NLtw==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.40.0", - "@typescript-eslint/type-utils": "8.40.0", - "@typescript-eslint/utils": "8.40.0", - "@typescript-eslint/visitor-keys": "8.40.0", + "@typescript-eslint/scope-manager": "8.41.0", + "@typescript-eslint/type-utils": "8.41.0", + "@typescript-eslint/utils": "8.41.0", + "@typescript-eslint/visitor-keys": "8.41.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", @@ -1082,7 +1082,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.40.0", + "@typescript-eslint/parser": "^8.41.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } @@ -1098,16 +1098,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.40.0.tgz", - "integrity": "sha512-jCNyAuXx8dr5KJMkecGmZ8KI61KBUhkCob+SD+C+I5+Y1FWI2Y3QmY4/cxMCC5WAsZqoEtEETVhUiUMIGCf6Bw==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.41.0.tgz", + "integrity": "sha512-gTtSdWX9xiMPA/7MV9STjJOOYtWwIJIYxkQxnSV1U3xcE+mnJSH3f6zI0RYP+ew66WSlZ5ed+h0VCxsvdC1jJg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.40.0", - "@typescript-eslint/types": "8.40.0", - "@typescript-eslint/typescript-estree": "8.40.0", - "@typescript-eslint/visitor-keys": "8.40.0", + "@typescript-eslint/scope-manager": "8.41.0", + "@typescript-eslint/types": "8.41.0", + "@typescript-eslint/typescript-estree": "8.41.0", + "@typescript-eslint/visitor-keys": "8.41.0", "debug": "^4.3.4" }, "engines": { @@ -1123,14 +1123,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.40.0.tgz", - "integrity": "sha512-/A89vz7Wf5DEXsGVvcGdYKbVM9F7DyFXj52lNYUDS1L9yJfqjW/fIp5PgMuEJL/KeqVTe2QSbXAGUZljDUpArw==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.41.0.tgz", + "integrity": "sha512-b8V9SdGBQzQdjJ/IO3eDifGpDBJfvrNTp2QD9P2BeqWTGrRibgfgIlBSw6z3b6R7dPzg752tOs4u/7yCLxksSQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.40.0", - "@typescript-eslint/types": "^8.40.0", + "@typescript-eslint/tsconfig-utils": "^8.41.0", + "@typescript-eslint/types": "^8.41.0", "debug": "^4.3.4" }, "engines": { @@ -1145,14 +1145,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.40.0.tgz", - "integrity": "sha512-y9ObStCcdCiZKzwqsE8CcpyuVMwRouJbbSrNuThDpv16dFAj429IkM6LNb1dZ2m7hK5fHyzNcErZf7CEeKXR4w==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.41.0.tgz", + "integrity": "sha512-n6m05bXn/Cd6DZDGyrpXrELCPVaTnLdPToyhBoFkLIMznRUQUEQdSp96s/pcWSQdqOhrgR1mzJ+yItK7T+WPMQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.40.0", - "@typescript-eslint/visitor-keys": "8.40.0" + "@typescript-eslint/types": "8.41.0", + "@typescript-eslint/visitor-keys": "8.41.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1163,9 +1163,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.40.0.tgz", - "integrity": "sha512-jtMytmUaG9d/9kqSl/W3E3xaWESo4hFDxAIHGVW/WKKtQhesnRIJSAJO6XckluuJ6KDB5woD1EiqknriCtAmcw==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.41.0.tgz", + "integrity": "sha512-TDhxYFPUYRFxFhuU5hTIJk+auzM/wKvWgoNYOPcOf6i4ReYlOoYN8q1dV5kOTjNQNJgzWN3TUUQMtlLOcUgdUw==", "dev": true, "license": "MIT", "engines": { @@ -1180,15 +1180,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.40.0.tgz", - "integrity": "sha512-eE60cK4KzAc6ZrzlJnflXdrMqOBaugeukWICO2rB0KNvwdIMaEaYiywwHMzA1qFpTxrLhN9Lp4E/00EgWcD3Ow==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.41.0.tgz", + "integrity": "sha512-63qt1h91vg3KsjVVonFJWjgSK7pZHSQFKH6uwqxAH9bBrsyRhO6ONoKyXxyVBzG1lJnFAJcKAcxLS54N1ee1OQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.40.0", - "@typescript-eslint/typescript-estree": "8.40.0", - "@typescript-eslint/utils": "8.40.0", + "@typescript-eslint/types": "8.41.0", + "@typescript-eslint/typescript-estree": "8.41.0", + "@typescript-eslint/utils": "8.41.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, @@ -1205,9 +1205,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.40.0.tgz", - "integrity": "sha512-ETdbFlgbAmXHyFPwqUIYrfc12ArvpBhEVgGAxVYSwli26dn8Ko+lIo4Su9vI9ykTZdJn+vJprs/0eZU0YMAEQg==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.41.0.tgz", + "integrity": "sha512-9EwxsWdVqh42afLbHP90n2VdHaWU/oWgbH2P0CfcNfdKL7CuKpwMQGjwev56vWu9cSKU7FWSu6r9zck6CVfnag==", "dev": true, "license": "MIT", "engines": { @@ -1219,16 +1219,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.40.0.tgz", - "integrity": "sha512-k1z9+GJReVVOkc1WfVKs1vBrR5MIKKbdAjDTPvIK3L8De6KbFfPFt6BKpdkdk7rZS2GtC/m6yI5MYX+UsuvVYQ==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.41.0.tgz", + "integrity": "sha512-D43UwUYJmGhuwHfY7MtNKRZMmfd8+p/eNSfFe6tH5mbVDto+VQCayeAt35rOx3Cs6wxD16DQtIKw/YXxt5E0UQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.40.0", - "@typescript-eslint/tsconfig-utils": "8.40.0", - "@typescript-eslint/types": "8.40.0", - "@typescript-eslint/visitor-keys": "8.40.0", + "@typescript-eslint/project-service": "8.41.0", + "@typescript-eslint/tsconfig-utils": "8.41.0", + "@typescript-eslint/types": "8.41.0", + "@typescript-eslint/visitor-keys": "8.41.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1248,16 +1248,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.40.0.tgz", - "integrity": "sha512-Cgzi2MXSZyAUOY+BFwGs17s7ad/7L+gKt6Y8rAVVWS+7o6wrjeFN4nVfTpbE25MNcxyJ+iYUXflbs2xR9h4UBg==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.41.0.tgz", + "integrity": "sha512-udbCVstxZ5jiPIXrdH+BZWnPatjlYwJuJkDA4Tbo3WyYLh8NvB+h/bKeSZHDOFKfphsZYJQqaFtLeXEqurQn1A==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.40.0", - "@typescript-eslint/types": "8.40.0", - "@typescript-eslint/typescript-estree": "8.40.0" + "@typescript-eslint/scope-manager": "8.41.0", + "@typescript-eslint/types": "8.41.0", + "@typescript-eslint/typescript-estree": "8.41.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1272,13 +1272,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.40.0.tgz", - "integrity": "sha512-8CZ47QwalyRjsypfwnbI3hKy5gJDPmrkLjkgMxhi0+DZZ2QNx2naS6/hWoVYUHU7LU2zleF68V9miaVZvhFfTA==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.41.0.tgz", + "integrity": "sha512-+GeGMebMCy0elMNg67LRNoVnUFPIm37iu5CmHESVx56/9Jsfdpsvbv605DQ81Pi/x11IdKUsS5nzgTYbCQU9fg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.40.0", + "@typescript-eslint/types": "8.41.0", "eslint-visitor-keys": "^4.2.1" }, "engines": { @@ -3813,16 +3813,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.40.0.tgz", - "integrity": "sha512-Xvd2l+ZmFDPEt4oj1QEXzA4A2uUK6opvKu3eGN9aGjB8au02lIVcLyi375w94hHyejTOmzIU77L8ol2sRg9n7Q==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.41.0.tgz", + "integrity": "sha512-n66rzs5OBXW3SFSnZHr2T685q1i4ODm2nulFJhMZBotaTavsS8TrI3d7bDlRSs9yWo7HmyWrN9qDu14Qv7Y0Dw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.40.0", - "@typescript-eslint/parser": "8.40.0", - "@typescript-eslint/typescript-estree": "8.40.0", - "@typescript-eslint/utils": "8.40.0" + "@typescript-eslint/eslint-plugin": "8.41.0", + "@typescript-eslint/parser": "8.41.0", + "@typescript-eslint/typescript-estree": "8.41.0", + "@typescript-eslint/utils": "8.41.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" From d90ea8d633be74a0e346799792a2b7a38d15bf12 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 28 Aug 2025 05:07:30 +0000 Subject: [PATCH 070/143] build(deps): bump openid-client from 6.6.4 to 6.7.0 Bumps [openid-client](https://github.com/panva/openid-client) from 6.6.4 to 6.7.0. - [Release notes](https://github.com/panva/openid-client/releases) - [Changelog](https://github.com/panva/openid-client/blob/main/CHANGELOG.md) - [Commits](https://github.com/panva/openid-client/compare/v6.6.4...v6.7.0) --- updated-dependencies: - dependency-name: openid-client dependency-version: 6.7.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index f86fea723c..0ba8b2a479 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2671,9 +2671,9 @@ } }, "node_modules/jose": { - "version": "6.0.12", - "resolved": "https://registry.npmjs.org/jose/-/jose-6.0.12.tgz", - "integrity": "sha512-T8xypXs8CpmiIi78k0E+Lk7T2zlK4zDyg+o1CZ4AkOHgDg98ogdP2BeZ61lTFKFyoEwJ9RgAgN+SdM3iPgNonQ==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.1.0.tgz", + "integrity": "sha512-TTQJyoEoKcC1lscpVDCSsVgYzUDg/0Bt3WE//WiTPK6uOCQC2KZS4MpugbMWt/zyjkopgZoXhZuCi00gLudfUA==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/panva" @@ -3008,9 +3008,9 @@ } }, "node_modules/oauth4webapi": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.7.0.tgz", - "integrity": "sha512-Q52wTPUWPsVLVVmTViXPQFMW2h2xv2jnDGxypjpelCFKaOjLsm7AxYuOk1oQgFm95VNDbuggasu9htXrz6XwKw==", + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.8.0.tgz", + "integrity": "sha512-RSu64fjsBIs6D7s9g5LOCnOohOkI0nnPtlIp/4rrHj2Vb8jGepq+fujkv2Srw4tuw9qa02aETXQzyQUle8nfnQ==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/panva" @@ -3026,13 +3026,13 @@ } }, "node_modules/openid-client": { - "version": "6.6.4", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.6.4.tgz", - "integrity": "sha512-PLWVhRksRnNH05sqeuCX/PR+1J70NyZcAcPske+FeF732KKONd3v0p5Utx1ro1iLfCglH8B3/+dA1vqIHDoIiA==", + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.7.0.tgz", + "integrity": "sha512-mA8Cex9wGK6Jaqq4vd1sPDK/a+cQ6G+lExVJ9IRjwInN4NcEEntYqLAZsBhZOyHwDx7V1nmPKOvnxOcdLtSpoA==", "license": "MIT", "dependencies": { - "jose": "^6.0.12", - "oauth4webapi": "^3.7.0" + "jose": "^6.1.0", + "oauth4webapi": "^3.8.0" }, "funding": { "url": "https://github.com/sponsors/panva" From aa468fc80153ff92e809da74afe641b699cf2d0f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Sep 2025 04:44:36 +0000 Subject: [PATCH 071/143] build(deps-dev): bump typedoc from 0.28.11 to 0.28.12 Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.28.11 to 0.28.12. - [Release notes](https://github.com/TypeStrong/TypeDoc/releases) - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md) - [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.28.11...v0.28.12) --- updated-dependencies: - dependency-name: typedoc dependency-version: 0.28.12 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 61 ++++++++++++++++++++++++----------------------- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0ba8b2a479..530fc3ad5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -665,16 +665,16 @@ } }, "node_modules/@gerrit0/mini-shiki": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-3.9.1.tgz", - "integrity": "sha512-quvtbDhNf528BkMHQQd8xGJMpmA5taDZuex/JDF8ETEjS2iypXzr1hnEUVh+lTUyffFJ0JCxysUsiuUoEGIz/Q==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-3.12.0.tgz", + "integrity": "sha512-CF1vkfe2ViPtmoFEvtUWilEc4dOCiFzV8+J7/vEISSsslKQ97FjeTPNMCqUhZEiKySmKRgK3UO/CxtkyOp7DvA==", "dev": true, "license": "MIT", "dependencies": { - "@shikijs/engine-oniguruma": "^3.9.1", - "@shikijs/langs": "^3.9.1", - "@shikijs/themes": "^3.9.1", - "@shikijs/types": "^3.9.1", + "@shikijs/engine-oniguruma": "^3.12.0", + "@shikijs/langs": "^3.12.0", + "@shikijs/themes": "^3.12.0", + "@shikijs/types": "^3.12.0", "@shikijs/vscode-textmate": "^10.0.2" } }, @@ -927,40 +927,40 @@ } }, "node_modules/@shikijs/engine-oniguruma": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.9.1.tgz", - "integrity": "sha512-WPlL/xqviwS3te4unSGGGfflKsuHLMI6tPdNYvgz/IygcBT6UiwDFSzjBKyebwi5GGSlXsjjdoJLIBnAplmEZw==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.12.0.tgz", + "integrity": "sha512-IfDl3oXPbJ/Jr2K8mLeQVpnF+FxjAc7ZPDkgr38uEw/Bg3u638neSrpwqOTnTHXt1aU0Fk1/J+/RBdst1kVqLg==", "dev": true, "license": "MIT", "dependencies": { - "@shikijs/types": "3.9.1", + "@shikijs/types": "3.12.0", "@shikijs/vscode-textmate": "^10.0.2" } }, "node_modules/@shikijs/langs": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.9.1.tgz", - "integrity": "sha512-Vyy2Yv9PP3Veh3VSsIvNncOR+O93wFsNYgN2B6cCCJlS7H9SKFYc55edsqernsg8WT/zam1cfB6llJsQWLnVhA==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.12.0.tgz", + "integrity": "sha512-HIca0daEySJ8zuy9bdrtcBPhcYBo8wR1dyHk1vKrOuwDsITtZuQeGhEkcEfWc6IDyTcom7LRFCH6P7ljGSCEiQ==", "dev": true, "license": "MIT", "dependencies": { - "@shikijs/types": "3.9.1" + "@shikijs/types": "3.12.0" } }, "node_modules/@shikijs/themes": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.9.1.tgz", - "integrity": "sha512-zAykkGECNICCMXpKeVvq04yqwaSuAIvrf8MjsU5bzskfg4XreU+O0B5wdNCYRixoB9snd3YlZ373WV5E/g5T9A==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.12.0.tgz", + "integrity": "sha512-/lxvQxSI5s4qZLV/AuFaA4Wt61t/0Oka/P9Lmpr1UV+HydNCczO3DMHOC/CsXCCpbv4Zq8sMD0cDa7mvaVoj0Q==", "dev": true, "license": "MIT", "dependencies": { - "@shikijs/types": "3.9.1" + "@shikijs/types": "3.12.0" } }, "node_modules/@shikijs/types": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.9.1.tgz", - "integrity": "sha512-rqM3T7a0iM1oPKz9iaH/cVgNX9Vz1HERcUcXJ94/fulgVdwqfnhXzGxO4bLrAnh/o5CPLy3IcYedogfV+Ns0Qg==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.12.0.tgz", + "integrity": "sha512-jsFzm8hCeTINC3OCmTZdhR9DOl/foJWplH2Px0bTi4m8z59fnsueLsweX82oGcjRQ7mfQAluQYKGoH2VzsWY4A==", "dev": true, "license": "MIT", "dependencies": { @@ -3775,17 +3775,17 @@ } }, "node_modules/typedoc": { - "version": "0.28.11", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.11.tgz", - "integrity": "sha512-1FqgrrUYGNuE3kImAiEDgAVVVacxdO4ZVTKbiOVDGkoeSB4sNwQaDpa8mta+Lw5TEzBFmGXzsg0I1NLRIoaSFw==", + "version": "0.28.12", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.12.tgz", + "integrity": "sha512-H5ODu4f7N+myG4MfuSp2Vh6wV+WLoZaEYxKPt2y8hmmqNEMVrH69DAjjdmYivF4tP/C2jrIZCZhPalZlTU/ipA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@gerrit0/mini-shiki": "^3.9.0", + "@gerrit0/mini-shiki": "^3.12.0", "lunr": "^2.3.9", "markdown-it": "^14.1.0", "minimatch": "^9.0.5", - "yaml": "^2.8.0" + "yaml": "^2.8.1" }, "bin": { "typedoc": "bin/typedoc" @@ -4048,10 +4048,11 @@ } }, "node_modules/yaml": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.0.tgz", - "integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz", + "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==", "dev": true, + "license": "ISC", "bin": { "yaml": "bin.mjs" }, From bf194823a6070b68ca7d380c197351d26b8e0c55 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Sep 2025 04:45:38 +0000 Subject: [PATCH 072/143] build(deps): bump openid-client from 6.7.0 to 6.7.1 Bumps [openid-client](https://github.com/panva/openid-client) from 6.7.0 to 6.7.1. - [Release notes](https://github.com/panva/openid-client/releases) - [Changelog](https://github.com/panva/openid-client/blob/main/CHANGELOG.md) - [Commits](https://github.com/panva/openid-client/compare/v6.7.0...v6.7.1) --- updated-dependencies: - dependency-name: openid-client dependency-version: 6.7.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0ba8b2a479..e350036350 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3026,9 +3026,9 @@ } }, "node_modules/openid-client": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.7.0.tgz", - "integrity": "sha512-mA8Cex9wGK6Jaqq4vd1sPDK/a+cQ6G+lExVJ9IRjwInN4NcEEntYqLAZsBhZOyHwDx7V1nmPKOvnxOcdLtSpoA==", + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.7.1.tgz", + "integrity": "sha512-kOiE4q0kNogr90hXsxPrKeEDuY+V0kkZazvZScOwZkYept9slsaQ3usXTaKkm6I04vLNuw5caBoX7UfrwC6x8w==", "license": "MIT", "dependencies": { "jose": "^6.1.0", From e50b6b5c3b6ec3cc0700c515e6eaa92b84916992 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Sep 2025 23:28:11 +0000 Subject: [PATCH 073/143] build(deps-dev): bump typescript-eslint from 8.41.0 to 8.42.0 Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.41.0 to 8.42.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.42.0/packages/typescript-eslint) --- updated-dependencies: - dependency-name: typescript-eslint dependency-version: 8.42.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 122 +++++++++++++++++++++++----------------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/package-lock.json b/package-lock.json index d9bf41f4e0..2be98e9668 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1058,17 +1058,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.41.0.tgz", - "integrity": "sha512-8fz6oa6wEKZrhXWro/S3n2eRJqlRcIa6SlDh59FXJ5Wp5XRZ8B9ixpJDcjadHq47hMx0u+HW6SNa6LjJQ6NLtw==", + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.42.0.tgz", + "integrity": "sha512-Aq2dPqsQkxHOLfb2OPv43RnIvfj05nw8v/6n3B2NABIPpHnjQnaLo9QGMTvml+tv4korl/Cjfrb/BYhoL8UUTQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.41.0", - "@typescript-eslint/type-utils": "8.41.0", - "@typescript-eslint/utils": "8.41.0", - "@typescript-eslint/visitor-keys": "8.41.0", + "@typescript-eslint/scope-manager": "8.42.0", + "@typescript-eslint/type-utils": "8.42.0", + "@typescript-eslint/utils": "8.42.0", + "@typescript-eslint/visitor-keys": "8.42.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", @@ -1082,7 +1082,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.41.0", + "@typescript-eslint/parser": "^8.42.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } @@ -1098,16 +1098,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.41.0.tgz", - "integrity": "sha512-gTtSdWX9xiMPA/7MV9STjJOOYtWwIJIYxkQxnSV1U3xcE+mnJSH3f6zI0RYP+ew66WSlZ5ed+h0VCxsvdC1jJg==", + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.42.0.tgz", + "integrity": "sha512-r1XG74QgShUgXph1BYseJ+KZd17bKQib/yF3SR+demvytiRXrwd12Blnz5eYGm8tXaeRdd4x88MlfwldHoudGg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.41.0", - "@typescript-eslint/types": "8.41.0", - "@typescript-eslint/typescript-estree": "8.41.0", - "@typescript-eslint/visitor-keys": "8.41.0", + "@typescript-eslint/scope-manager": "8.42.0", + "@typescript-eslint/types": "8.42.0", + "@typescript-eslint/typescript-estree": "8.42.0", + "@typescript-eslint/visitor-keys": "8.42.0", "debug": "^4.3.4" }, "engines": { @@ -1123,14 +1123,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.41.0.tgz", - "integrity": "sha512-b8V9SdGBQzQdjJ/IO3eDifGpDBJfvrNTp2QD9P2BeqWTGrRibgfgIlBSw6z3b6R7dPzg752tOs4u/7yCLxksSQ==", + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.42.0.tgz", + "integrity": "sha512-vfVpLHAhbPjilrabtOSNcUDmBboQNrJUiNAGoImkZKnMjs2TIcWG33s4Ds0wY3/50aZmTMqJa6PiwkwezaAklg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.41.0", - "@typescript-eslint/types": "^8.41.0", + "@typescript-eslint/tsconfig-utils": "^8.42.0", + "@typescript-eslint/types": "^8.42.0", "debug": "^4.3.4" }, "engines": { @@ -1145,14 +1145,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.41.0.tgz", - "integrity": "sha512-n6m05bXn/Cd6DZDGyrpXrELCPVaTnLdPToyhBoFkLIMznRUQUEQdSp96s/pcWSQdqOhrgR1mzJ+yItK7T+WPMQ==", + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.42.0.tgz", + "integrity": "sha512-51+x9o78NBAVgQzOPd17DkNTnIzJ8T/O2dmMBLoK9qbY0Gm52XJcdJcCl18ExBMiHo6jPMErUQWUv5RLE51zJw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.41.0", - "@typescript-eslint/visitor-keys": "8.41.0" + "@typescript-eslint/types": "8.42.0", + "@typescript-eslint/visitor-keys": "8.42.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1163,9 +1163,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.41.0.tgz", - "integrity": "sha512-TDhxYFPUYRFxFhuU5hTIJk+auzM/wKvWgoNYOPcOf6i4ReYlOoYN8q1dV5kOTjNQNJgzWN3TUUQMtlLOcUgdUw==", + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.42.0.tgz", + "integrity": "sha512-kHeFUOdwAJfUmYKjR3CLgZSglGHjbNTi1H8sTYRYV2xX6eNz4RyJ2LIgsDLKf8Yi0/GL1WZAC/DgZBeBft8QAQ==", "dev": true, "license": "MIT", "engines": { @@ -1180,15 +1180,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.41.0.tgz", - "integrity": "sha512-63qt1h91vg3KsjVVonFJWjgSK7pZHSQFKH6uwqxAH9bBrsyRhO6ONoKyXxyVBzG1lJnFAJcKAcxLS54N1ee1OQ==", + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.42.0.tgz", + "integrity": "sha512-9KChw92sbPTYVFw3JLRH1ockhyR3zqqn9lQXol3/YbI6jVxzWoGcT3AsAW0mu1MY0gYtsXnUGV/AKpkAj5tVlQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.41.0", - "@typescript-eslint/typescript-estree": "8.41.0", - "@typescript-eslint/utils": "8.41.0", + "@typescript-eslint/types": "8.42.0", + "@typescript-eslint/typescript-estree": "8.42.0", + "@typescript-eslint/utils": "8.42.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, @@ -1205,9 +1205,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.41.0.tgz", - "integrity": "sha512-9EwxsWdVqh42afLbHP90n2VdHaWU/oWgbH2P0CfcNfdKL7CuKpwMQGjwev56vWu9cSKU7FWSu6r9zck6CVfnag==", + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.42.0.tgz", + "integrity": "sha512-LdtAWMiFmbRLNP7JNeY0SqEtJvGMYSzfiWBSmx+VSZ1CH+1zyl8Mmw1TT39OrtsRvIYShjJWzTDMPWZJCpwBlw==", "dev": true, "license": "MIT", "engines": { @@ -1219,16 +1219,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.41.0.tgz", - "integrity": "sha512-D43UwUYJmGhuwHfY7MtNKRZMmfd8+p/eNSfFe6tH5mbVDto+VQCayeAt35rOx3Cs6wxD16DQtIKw/YXxt5E0UQ==", + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.42.0.tgz", + "integrity": "sha512-ku/uYtT4QXY8sl9EDJETD27o3Ewdi72hcXg1ah/kkUgBvAYHLwj2ofswFFNXS+FL5G+AGkxBtvGt8pFBHKlHsQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.41.0", - "@typescript-eslint/tsconfig-utils": "8.41.0", - "@typescript-eslint/types": "8.41.0", - "@typescript-eslint/visitor-keys": "8.41.0", + "@typescript-eslint/project-service": "8.42.0", + "@typescript-eslint/tsconfig-utils": "8.42.0", + "@typescript-eslint/types": "8.42.0", + "@typescript-eslint/visitor-keys": "8.42.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1248,16 +1248,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.41.0.tgz", - "integrity": "sha512-udbCVstxZ5jiPIXrdH+BZWnPatjlYwJuJkDA4Tbo3WyYLh8NvB+h/bKeSZHDOFKfphsZYJQqaFtLeXEqurQn1A==", + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.42.0.tgz", + "integrity": "sha512-JnIzu7H3RH5BrKC4NoZqRfmjqCIS1u3hGZltDYJgkVdqAezl4L9d1ZLw+36huCujtSBSAirGINF/S4UxOcR+/g==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.41.0", - "@typescript-eslint/types": "8.41.0", - "@typescript-eslint/typescript-estree": "8.41.0" + "@typescript-eslint/scope-manager": "8.42.0", + "@typescript-eslint/types": "8.42.0", + "@typescript-eslint/typescript-estree": "8.42.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1272,13 +1272,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.41.0.tgz", - "integrity": "sha512-+GeGMebMCy0elMNg67LRNoVnUFPIm37iu5CmHESVx56/9Jsfdpsvbv605DQ81Pi/x11IdKUsS5nzgTYbCQU9fg==", + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.42.0.tgz", + "integrity": "sha512-3WbiuzoEowaEn8RSnhJBrxSwX8ULYE9CXaPepS2C2W3NSA5NNIvBaslpBSBElPq0UGr0xVJlXFWOAKIkyylydQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.41.0", + "@typescript-eslint/types": "8.42.0", "eslint-visitor-keys": "^4.2.1" }, "engines": { @@ -3813,16 +3813,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.41.0.tgz", - "integrity": "sha512-n66rzs5OBXW3SFSnZHr2T685q1i4ODm2nulFJhMZBotaTavsS8TrI3d7bDlRSs9yWo7HmyWrN9qDu14Qv7Y0Dw==", + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.42.0.tgz", + "integrity": "sha512-ozR/rQn+aQXQxh1YgbCzQWDFrsi9mcg+1PM3l/z5o1+20P7suOIaNg515bpr/OYt6FObz/NHcBstydDLHWeEKg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.41.0", - "@typescript-eslint/parser": "8.41.0", - "@typescript-eslint/typescript-estree": "8.41.0", - "@typescript-eslint/utils": "8.41.0" + "@typescript-eslint/eslint-plugin": "8.42.0", + "@typescript-eslint/parser": "8.42.0", + "@typescript-eslint/typescript-estree": "8.42.0", + "@typescript-eslint/utils": "8.42.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" From 3d7faf08d7001875f5beb1d2367293de77957fe1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 5 Sep 2025 02:16:09 +0000 Subject: [PATCH 074/143] build(deps): bump @types/node from 24.3.0 to 24.3.1 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.3.0 to 24.3.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.3.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2be98e9668..8d2f87d1ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1023,9 +1023,9 @@ } }, "node_modules/@types/node": { - "version": "24.3.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.0.tgz", - "integrity": "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==", + "version": "24.3.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.1.tgz", + "integrity": "sha512-3vXmQDXy+woz+gnrTvuvNrPzekOi+Ds0ReMxw0LzBiK3a+1k0kQn9f2NWk+lgD4rJehFUmYy2gMhJ2ZI+7YP9g==", "license": "MIT", "dependencies": { "undici-types": "~7.10.0" From f008e336f9198a5da80fdee68f11a22aad8d07d3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 5 Sep 2025 03:04:57 +0000 Subject: [PATCH 075/143] build(deps): bump actions/setup-node from 4 to 5 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 5. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/deploy-docs.yml | 2 +- .github/workflows/generate-javascript.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 6fd4f0f63b..018a6c3916 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -10,7 +10,7 @@ jobs: - name: Checkout uses: actions/checkout@v5.0.0 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: '20' # Pre-check to validate that versions match between package.json diff --git a/.github/workflows/generate-javascript.yml b/.github/workflows/generate-javascript.yml index 670026eae3..f6776f2549 100644 --- a/.github/workflows/generate-javascript.yml +++ b/.github/workflows/generate-javascript.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout Javascript uses: actions/checkout@v5.0.0 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: '20' - name: Generate Openapi diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 58f77ae599..aba95fc310 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: - name: Checkout Javascript uses: actions/checkout@v5.0.0 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: '20' registry-url: 'https://registry.npmjs.org/' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 565dd2a53e..4401e43700 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: name: Node ${{ matrix.node }} validation steps: - uses: actions/checkout@v5.0.0 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v5 with: node-version: ${{ matrix.node }} # Pre-check to validate that versions match between package.json From 42cde8e573fdb915797576da66136f57fcd64322 Mon Sep 17 00:00:00 2001 From: 0x5457 <0x5457@protonmail.com> Date: Sat, 6 Sep 2025 18:50:26 +0800 Subject: [PATCH 076/143] fix: add comments for rejectUnauthorized logic and replace selfsigned with static certs --- package-lock.json | 24 ------------------------ package.json | 1 - src/config.ts | 2 ++ src/config_test.ts | 12 +++++++----- testdata/certs/test-cert.pem | 19 +++++++++++++++++++ testdata/certs/test-key.pem | 28 ++++++++++++++++++++++++++++ 6 files changed, 56 insertions(+), 30 deletions(-) create mode 100644 testdata/certs/test-cert.pem create mode 100644 testdata/certs/test-key.pem diff --git a/package-lock.json b/package-lock.json index 5e1649e213..95fbade6e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,7 +37,6 @@ "nock": "^14.0.5", "prettier": "^3.0.0", "pretty-quick": "^4.0.0", - "selfsigned": "^3.0.1", "ts-mockito": "^2.3.1", "tsx": "^4.19.1", "typedoc": "^0.28.0", @@ -3008,16 +3007,6 @@ } } }, - "node_modules/node-forge": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", - "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", - "dev": true, - "license": "(BSD-3-Clause OR GPL-2.0)", - "engines": { - "node": ">= 6.13.0" - } - }, "node_modules/oauth4webapi": { "version": "3.7.0", "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.7.0.tgz", @@ -3397,19 +3386,6 @@ "queue-microtask": "^1.2.2" } }, - "node_modules/selfsigned": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-3.0.1.tgz", - "integrity": "sha512-6U6w6kSLrM9Zxo0D7mC7QdGS6ZZytMWBnj/vhF9p+dAHx6CwGezuRcO4VclTbrrI7mg7SD6zNiqXUuBHOVopNQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "node-forge": "^1" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/semver": { "version": "7.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", diff --git a/package.json b/package.json index 34a01fa96c..9903e21cd6 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,6 @@ "nock": "^14.0.5", "prettier": "^3.0.0", "pretty-quick": "^4.0.0", - "selfsigned": "^3.0.1", "ts-mockito": "^2.3.1", "tsx": "^4.19.1", "typedoc": "^0.28.0", diff --git a/src/config.ts b/src/config.ts index dfa2d58c67..b625642c41 100644 --- a/src/config.ts +++ b/src/config.ts @@ -202,6 +202,7 @@ export class KubeConfig implements SecurityAuthentication { agentOptions.key = opts.key; agentOptions.pfx = opts.pfx; agentOptions.passphrase = opts.passphrase; + // Only set rejectUnauthorized if explicitly configured. When not set, fetch will use NODE_TLS_REJECT_UNAUTHORIZED env var if (opts.rejectUnauthorized !== undefined) { agentOptions.rejectUnauthorized = opts.rejectUnauthorized; } @@ -261,6 +262,7 @@ export class KubeConfig implements SecurityAuthentication { agentOptions.key = httpsOptions.key; agentOptions.pfx = httpsOptions.pfx; agentOptions.passphrase = httpsOptions.passphrase; + // Only set rejectUnauthorized if explicitly configured. When not set, fetch will use NODE_TLS_REJECT_UNAUTHORIZED env var if (httpsOptions.rejectUnauthorized !== undefined) { agentOptions.rejectUnauthorized = httpsOptions.rejectUnauthorized; } diff --git a/src/config_test.ts b/src/config_test.ts index 5634cffa05..55461d880a 100644 --- a/src/config_test.ts +++ b/src/config_test.ts @@ -28,7 +28,6 @@ import { ExecAuth } from './exec_auth.js'; import { HttpProxyAgent, HttpsProxyAgent } from 'hpagent'; import { SocksProxyAgent } from 'socks-proxy-agent'; import { AddressInfo } from 'node:net'; -import selfsigned from 'selfsigned'; const kcFileName = 'testdata/kubeconfig.yaml'; const kc2FileName = 'testdata/kubeconfig-2.yaml'; @@ -42,6 +41,9 @@ const kcInvalidContextFileName = 'testdata/empty-context-kubeconfig.yaml'; const kcInvalidClusterFileName = 'testdata/empty-cluster-kubeconfig.yaml'; const kcTlsServerNameFileName = 'testdata/tls-server-name-kubeconfig.yaml'; +const testCertFileName = 'testdata/certs/test-cert.pem'; +const testKeyFileName = 'testdata/certs/test-key.pem'; + const __dirname = dirname(fileURLToPath(import.meta.url)); describe('Config', () => {}); @@ -521,8 +523,8 @@ describe('KubeConfig', () => { const originalValue = process.env.NODE_TLS_REJECT_UNAUTHORIZED; process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; after(() => { - server.close(); process.env.NODE_TLS_REJECT_UNAUTHORIZED = originalValue; + server.close(); }); const kc = new KubeConfig(); @@ -547,8 +549,6 @@ describe('KubeConfig', () => { const res2 = await fetch(`https://${host}:${port}`, await kc.applyToFetchOptions({})); strictEqual(res2.status, 200); strictEqual(await res2.text(), 'ok'); - - delete process.env.NODE_TLS_REJECT_UNAUTHORIZED; }); }); @@ -1897,7 +1897,9 @@ async function createTestHttpsServer( ca: string; }> { const host = 'localhost'; - const { private: key, cert } = selfsigned.generate([{ name: 'commonName', value: host }]); + + const cert = readFileSync(testCertFileName, 'utf8'); + const key = readFileSync(testKeyFileName, 'utf8'); const defaultHandler = (req: http.IncomingMessage, res: http.ServerResponse) => { res.writeHead(200); diff --git a/testdata/certs/test-cert.pem b/testdata/certs/test-cert.pem new file mode 100644 index 0000000000..89591a0a25 --- /dev/null +++ b/testdata/certs/test-cert.pem @@ -0,0 +1,19 @@ +-----BEGIN CERTIFICATE----- +MIIDCzCCAfOgAwIBAgIUPTyeIJ44dN2PZYW0a3WGYfcB6iwwDQYJKoZIhvcNAQEL +BQAwFDESMBAGA1UEAwwJbG9jYWxob3N0MCAXDTI1MDkwNjEwNDAzN1oYDzQ3NjMw +ODAzMTA0MDM3WjAUMRIwEAYDVQQDDAlsb2NhbGhvc3QwggEiMA0GCSqGSIb3DQEB +AQUAA4IBDwAwggEKAoIBAQCdDiYdfXRhzDLum5pqa6BICCPfQ+vqTfF3aYrqAwV1 +C63hYs/yU+IK83ohiPScmShmAP2ofHsP/8R9HK7LEWkvO5ZlGxebE9ARkXa51Gs9 +g8IBjH+10EL5BcTHnb+T187rTlSaSpM59LVXhlsI/zzDB6VnvApPyLFpYJ0YoYau +4gA4rMrkZGkziCx85ONdWxYyjh4RemwNxOIzmEHg5R7v7g5yPxmNcmK4BQ0XLFAf +4KgMAlhIpGz03vOz8mP/JTKO8PoB9rmKmsEANB3MQW9C/n4yosVjqN9lyaJXLII3 +6QPRi7bxqH5sq2rRfNNA9KbiszySWda7jupB8JgiBcnDAgMBAAGjUzBRMB0GA1Ud +DgQWBBTuleDZd59erSUzMOu46Yz1q9iDoDAfBgNVHSMEGDAWgBTuleDZd59erSUz +MOu46Yz1q9iDoDAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBB +dfUNSeJj5oZi9QCFkjqIW0Zr3x1ODjaPVtlvp0lfcRF2qUBbaA8qvvDTbhWrS4Xl +NLzgK+aFhgJOcTj13BYNy1yag7ZnkwunInzsEGYJgC/JgZ93De/gWs88icOUHTo0 +Eg/eco6usqykz/1ZDbUwNf5rOItdXt+cp6kpWkrapz4RISddgN0kIdwEOjCKh0+b +EvJ5lH/UUwVrfZ2KI4kz1A1gQzgA1flqwLm7CNxZtRywfZR4F2mpX9dafBFqzm4w +Y9jCrrhS7Y9p3Q0muHLjOOXOAYO+w/Z0av3JqvbQC1bxz3ybjSPjL8bhP3ptJarW +yd4YH2zt3+0omzYwHfRs +-----END CERTIFICATE----- diff --git a/testdata/certs/test-key.pem b/testdata/certs/test-key.pem new file mode 100644 index 0000000000..520a2a96fb --- /dev/null +++ b/testdata/certs/test-key.pem @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCdDiYdfXRhzDLu +m5pqa6BICCPfQ+vqTfF3aYrqAwV1C63hYs/yU+IK83ohiPScmShmAP2ofHsP/8R9 +HK7LEWkvO5ZlGxebE9ARkXa51Gs9g8IBjH+10EL5BcTHnb+T187rTlSaSpM59LVX +hlsI/zzDB6VnvApPyLFpYJ0YoYau4gA4rMrkZGkziCx85ONdWxYyjh4RemwNxOIz +mEHg5R7v7g5yPxmNcmK4BQ0XLFAf4KgMAlhIpGz03vOz8mP/JTKO8PoB9rmKmsEA +NB3MQW9C/n4yosVjqN9lyaJXLII36QPRi7bxqH5sq2rRfNNA9KbiszySWda7jupB +8JgiBcnDAgMBAAECggEAD0Uk55EfE7Mq8JAof1hfiSFhe3+7HFjftWCJpR8OFMdB +7LwSw9jsDWyG32PVhLRPfTtzbkJMJM4VaKS1SgEzXOhKQyJTNTzD6jFefcrtclmx +Lz1d3WuWV2f8LfxkeBdvgulmyGmfzu7AAvaJO2K1obDIoEFkL0WwGjLOk2qBEde4 +V3hXEoBiHkoEE5mEgfUarCL8tLmyiIc0gpE231vKrbuSjyi1V/nV2elYujeVmJ/F +23c5/SodcQnI/tUrN+rIvhBoP6V0ddrieTBtzf/jKrAvvYge3o+X/Z0idIQowyQs +boUD2XHieImMEXwfuGyKj2dtCd8rbhOI5Mfroqa04QKBgQDZWOO1iv2vrz8VevCn +se4n3mBaxfScdbVLNKnwe/7FW+4UKuxB5F5lMMAWPwgN85+NSH7YbcvUkFcLf/Ge +zBPXtDrvkTeQxyzAfvmjrD+1dMgP6wM5PDJ1e7Cz2yo4Hsql1VJ1H+nd1JFfJysL +YwkcDcrIx6aEAdw8qxUZLDdOVwKBgQC4/Fz9IS1UKpuYoU60YPSKABB7JqAJCUlm +trS6eI8qwJW9vpg+9w1T/y+lOYPiYq16u+rF59vdh2883mwJnYiR8QCsv5VfRPuR +dLzZAMMqWtqSXnLbHMHXdyZEZOxh6Qfix0tSRd0A6y876kWE1OkDCi6ARkXVAWnC +oPLxHeNkdQKBgG2v0GskE9b/yARdIOpgf2IbdeEZmdMEDFRB5al5yh9rv4DqEIVI +bOMAcVBIyxXPZyvz9B/heUZy+ZrSHOwY7cKkMEIKtVIZUlprOi0Blr1KjFSMM/pE +iOqFW63I40ujLn32ZEC7tFjBGAQ/ThfXCRfhVf9x0nU4Qx9S77jeeaLNAoGBALVL +N0MpkcgsHeQfKwhjASaCW6SmPS+99z8ADu21m/I1XkvgkEsdSuWociSG0rc7KHPh +2Xxt+LAKvL0160IdLyyAur2S4azF6Zsrgq1WLu/CrPXINN6DN4KYlltvYa+vd3gN +A8e1CpyM4fTha5J8K4U8JEi5FlVklicWICKovSPFAoGAYSgPvteAo2RAN6su9d8O +s7oLXnFLqaF+Fo9vdc9uEKzzdROf7GCpz/6uOb9NCiRFpu8bNyDKK4UpNqMbO97E +Km+QQuBOms16ic/lOUT6sWVe3V6FIs18xBxNNE7LrfPfa8Vory7YoVsXji6SWikT +oLTjd9Tt7SOW/v7q9GHW798= +-----END PRIVATE KEY----- From a3bf06e2c9166fbd484c5fac0962702416a4272e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 02:13:40 +0000 Subject: [PATCH 077/143] build(deps-dev): bump eslint from 9.34.0 to 9.35.0 Bumps [eslint](https://github.com/eslint/eslint) from 9.34.0 to 9.35.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v9.34.0...v9.35.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 9.35.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8d2f87d1ac..50643fd16f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -480,9 +480,9 @@ } }, "node_modules/@eslint-community/eslint-utils": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", - "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.8.0.tgz", + "integrity": "sha512-MJQFqrZgcW0UNYLGOuQpey/oTN59vyWwplvCGZztn1cKz9agZPPYpJB7h2OMmuu7VLqkvEjN8feFZJmxNF9D+Q==", "dev": true, "license": "MIT", "dependencies": { @@ -629,9 +629,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.34.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.34.0.tgz", - "integrity": "sha512-EoyvqQnBNsV1CWaEJ559rxXL4c8V92gxirbawSmVUOWXlsRxxQXl6LmCpdUblgxgSkDIqKnhzba2SjRTI/A5Rw==", + "version": "9.35.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.35.0.tgz", + "integrity": "sha512-30iXE9whjlILfWobBkNerJo+TXYsgVM5ERQwMcMKCHckHflCmf7wXDAHlARoWnh0s1U72WqlbeyE7iAcCzuCPw==", "dev": true, "license": "MIT", "engines": { @@ -1902,19 +1902,19 @@ } }, "node_modules/eslint": { - "version": "9.34.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.34.0.tgz", - "integrity": "sha512-RNCHRX5EwdrESy3Jc9o8ie8Bog+PeYvvSR8sDGoZxNFTvZ4dlxUB3WzQ3bQMztFrSRODGrLLj8g6OFuGY/aiQg==", + "version": "9.35.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.35.0.tgz", + "integrity": "sha512-QePbBFMJFjgmlE+cXAlbHZbHpdFVS2E/6vzCy7aKlebddvl1vadiC4JFV5u/wqTkNUwEV8WrQi257jf5f06hrg==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.21.0", "@eslint/config-helpers": "^0.3.1", "@eslint/core": "^0.15.2", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.34.0", + "@eslint/js": "9.35.0", "@eslint/plugin-kit": "^0.3.5", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", From 5ab64ed0aa4cfe2726e56eba2605d0448b5e7058 Mon Sep 17 00:00:00 2001 From: 0x5457 <0x5457@protonmail.com> Date: Mon, 8 Sep 2025 22:01:49 +0800 Subject: [PATCH 078/143] fix: suppress LGTM certificate validation warning in tests --- src/config_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config_test.ts b/src/config_test.ts index 55461d880a..aab45ebbfe 100644 --- a/src/config_test.ts +++ b/src/config_test.ts @@ -521,7 +521,7 @@ describe('KubeConfig', () => { }); const originalValue = process.env.NODE_TLS_REJECT_UNAUTHORIZED; - process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; + process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; // lgtm[js/disabling-certificate-validation] after(() => { process.env.NODE_TLS_REJECT_UNAUTHORIZED = originalValue; server.close(); From cca83169bfb4df503f05cadfd17fe8e67c7a72d0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Sep 2025 02:14:25 +0000 Subject: [PATCH 079/143] build(deps-dev): bump typescript-eslint from 8.42.0 to 8.43.0 Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.42.0 to 8.43.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.43.0/packages/typescript-eslint) --- updated-dependencies: - dependency-name: typescript-eslint dependency-version: 8.43.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 122 +++++++++++++++++++++++----------------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/package-lock.json b/package-lock.json index 50643fd16f..f6072dde60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1058,17 +1058,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.42.0.tgz", - "integrity": "sha512-Aq2dPqsQkxHOLfb2OPv43RnIvfj05nw8v/6n3B2NABIPpHnjQnaLo9QGMTvml+tv4korl/Cjfrb/BYhoL8UUTQ==", + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.43.0.tgz", + "integrity": "sha512-8tg+gt7ENL7KewsKMKDHXR1vm8tt9eMxjJBYINf6swonlWgkYn5NwyIgXpbbDxTNU5DgpDFfj95prcTq2clIQQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.42.0", - "@typescript-eslint/type-utils": "8.42.0", - "@typescript-eslint/utils": "8.42.0", - "@typescript-eslint/visitor-keys": "8.42.0", + "@typescript-eslint/scope-manager": "8.43.0", + "@typescript-eslint/type-utils": "8.43.0", + "@typescript-eslint/utils": "8.43.0", + "@typescript-eslint/visitor-keys": "8.43.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", @@ -1082,7 +1082,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.42.0", + "@typescript-eslint/parser": "^8.43.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } @@ -1098,16 +1098,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.42.0.tgz", - "integrity": "sha512-r1XG74QgShUgXph1BYseJ+KZd17bKQib/yF3SR+demvytiRXrwd12Blnz5eYGm8tXaeRdd4x88MlfwldHoudGg==", + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.43.0.tgz", + "integrity": "sha512-B7RIQiTsCBBmY+yW4+ILd6mF5h1FUwJsVvpqkrgpszYifetQ2Ke+Z4u6aZh0CblkUGIdR59iYVyXqqZGkZ3aBw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.42.0", - "@typescript-eslint/types": "8.42.0", - "@typescript-eslint/typescript-estree": "8.42.0", - "@typescript-eslint/visitor-keys": "8.42.0", + "@typescript-eslint/scope-manager": "8.43.0", + "@typescript-eslint/types": "8.43.0", + "@typescript-eslint/typescript-estree": "8.43.0", + "@typescript-eslint/visitor-keys": "8.43.0", "debug": "^4.3.4" }, "engines": { @@ -1123,14 +1123,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.42.0.tgz", - "integrity": "sha512-vfVpLHAhbPjilrabtOSNcUDmBboQNrJUiNAGoImkZKnMjs2TIcWG33s4Ds0wY3/50aZmTMqJa6PiwkwezaAklg==", + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.43.0.tgz", + "integrity": "sha512-htB/+D/BIGoNTQYffZw4uM4NzzuolCoaA/BusuSIcC8YjmBYQioew5VUZAYdAETPjeed0hqCaW7EHg+Robq8uw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.42.0", - "@typescript-eslint/types": "^8.42.0", + "@typescript-eslint/tsconfig-utils": "^8.43.0", + "@typescript-eslint/types": "^8.43.0", "debug": "^4.3.4" }, "engines": { @@ -1145,14 +1145,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.42.0.tgz", - "integrity": "sha512-51+x9o78NBAVgQzOPd17DkNTnIzJ8T/O2dmMBLoK9qbY0Gm52XJcdJcCl18ExBMiHo6jPMErUQWUv5RLE51zJw==", + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.43.0.tgz", + "integrity": "sha512-daSWlQ87ZhsjrbMLvpuuMAt3y4ba57AuvadcR7f3nl8eS3BjRc8L9VLxFLk92RL5xdXOg6IQ+qKjjqNEimGuAg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.42.0", - "@typescript-eslint/visitor-keys": "8.42.0" + "@typescript-eslint/types": "8.43.0", + "@typescript-eslint/visitor-keys": "8.43.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1163,9 +1163,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.42.0.tgz", - "integrity": "sha512-kHeFUOdwAJfUmYKjR3CLgZSglGHjbNTi1H8sTYRYV2xX6eNz4RyJ2LIgsDLKf8Yi0/GL1WZAC/DgZBeBft8QAQ==", + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.43.0.tgz", + "integrity": "sha512-ALC2prjZcj2YqqL5X/bwWQmHA2em6/94GcbB/KKu5SX3EBDOsqztmmX1kMkvAJHzxk7TazKzJfFiEIagNV3qEA==", "dev": true, "license": "MIT", "engines": { @@ -1180,15 +1180,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.42.0.tgz", - "integrity": "sha512-9KChw92sbPTYVFw3JLRH1ockhyR3zqqn9lQXol3/YbI6jVxzWoGcT3AsAW0mu1MY0gYtsXnUGV/AKpkAj5tVlQ==", + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.43.0.tgz", + "integrity": "sha512-qaH1uLBpBuBBuRf8c1mLJ6swOfzCXryhKND04Igr4pckzSEW9JX5Aw9AgW00kwfjWJF0kk0ps9ExKTfvXfw4Qg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.42.0", - "@typescript-eslint/typescript-estree": "8.42.0", - "@typescript-eslint/utils": "8.42.0", + "@typescript-eslint/types": "8.43.0", + "@typescript-eslint/typescript-estree": "8.43.0", + "@typescript-eslint/utils": "8.43.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, @@ -1205,9 +1205,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.42.0.tgz", - "integrity": "sha512-LdtAWMiFmbRLNP7JNeY0SqEtJvGMYSzfiWBSmx+VSZ1CH+1zyl8Mmw1TT39OrtsRvIYShjJWzTDMPWZJCpwBlw==", + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.43.0.tgz", + "integrity": "sha512-vQ2FZaxJpydjSZJKiSW/LJsabFFvV7KgLC5DiLhkBcykhQj8iK9BOaDmQt74nnKdLvceM5xmhaTF+pLekrxEkw==", "dev": true, "license": "MIT", "engines": { @@ -1219,16 +1219,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.42.0.tgz", - "integrity": "sha512-ku/uYtT4QXY8sl9EDJETD27o3Ewdi72hcXg1ah/kkUgBvAYHLwj2ofswFFNXS+FL5G+AGkxBtvGt8pFBHKlHsQ==", + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.43.0.tgz", + "integrity": "sha512-7Vv6zlAhPb+cvEpP06WXXy/ZByph9iL6BQRBDj4kmBsW98AqEeQHlj/13X+sZOrKSo9/rNKH4Ul4f6EICREFdw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.42.0", - "@typescript-eslint/tsconfig-utils": "8.42.0", - "@typescript-eslint/types": "8.42.0", - "@typescript-eslint/visitor-keys": "8.42.0", + "@typescript-eslint/project-service": "8.43.0", + "@typescript-eslint/tsconfig-utils": "8.43.0", + "@typescript-eslint/types": "8.43.0", + "@typescript-eslint/visitor-keys": "8.43.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1248,16 +1248,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.42.0.tgz", - "integrity": "sha512-JnIzu7H3RH5BrKC4NoZqRfmjqCIS1u3hGZltDYJgkVdqAezl4L9d1ZLw+36huCujtSBSAirGINF/S4UxOcR+/g==", + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.43.0.tgz", + "integrity": "sha512-S1/tEmkUeeswxd0GGcnwuVQPFWo8NzZTOMxCvw8BX7OMxnNae+i8Tm7REQen/SwUIPoPqfKn7EaZ+YLpiB3k9g==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.42.0", - "@typescript-eslint/types": "8.42.0", - "@typescript-eslint/typescript-estree": "8.42.0" + "@typescript-eslint/scope-manager": "8.43.0", + "@typescript-eslint/types": "8.43.0", + "@typescript-eslint/typescript-estree": "8.43.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1272,13 +1272,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.42.0.tgz", - "integrity": "sha512-3WbiuzoEowaEn8RSnhJBrxSwX8ULYE9CXaPepS2C2W3NSA5NNIvBaslpBSBElPq0UGr0xVJlXFWOAKIkyylydQ==", + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.43.0.tgz", + "integrity": "sha512-T+S1KqRD4sg/bHfLwrpF/K3gQLBM1n7Rp7OjjikjTEssI2YJzQpi5WXoynOaQ93ERIuq3O8RBTOUYDKszUCEHw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.42.0", + "@typescript-eslint/types": "8.43.0", "eslint-visitor-keys": "^4.2.1" }, "engines": { @@ -3813,16 +3813,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.42.0.tgz", - "integrity": "sha512-ozR/rQn+aQXQxh1YgbCzQWDFrsi9mcg+1PM3l/z5o1+20P7suOIaNg515bpr/OYt6FObz/NHcBstydDLHWeEKg==", + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.43.0.tgz", + "integrity": "sha512-FyRGJKUGvcFekRRcBKFBlAhnp4Ng8rhe8tuvvkR9OiU0gfd4vyvTRQHEckO6VDlH57jbeUQem2IpqPq9kLJH+w==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.42.0", - "@typescript-eslint/parser": "8.42.0", - "@typescript-eslint/typescript-estree": "8.42.0", - "@typescript-eslint/utils": "8.42.0" + "@typescript-eslint/eslint-plugin": "8.43.0", + "@typescript-eslint/parser": "8.43.0", + "@typescript-eslint/typescript-estree": "8.43.0", + "@typescript-eslint/utils": "8.43.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" From 550ff4be88593c63fa7abe8e7b6f24970c65f2d6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 12 Sep 2025 02:11:48 +0000 Subject: [PATCH 080/143] build(deps): bump openid-client from 6.7.1 to 6.8.0 Bumps [openid-client](https://github.com/panva/openid-client) from 6.7.1 to 6.8.0. - [Release notes](https://github.com/panva/openid-client/releases) - [Changelog](https://github.com/panva/openid-client/blob/main/CHANGELOG.md) - [Commits](https://github.com/panva/openid-client/compare/v6.7.1...v6.8.0) --- updated-dependencies: - dependency-name: openid-client dependency-version: 6.8.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index f6072dde60..82071dc63d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3008,9 +3008,9 @@ } }, "node_modules/oauth4webapi": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.8.0.tgz", - "integrity": "sha512-RSu64fjsBIs6D7s9g5LOCnOohOkI0nnPtlIp/4rrHj2Vb8jGepq+fujkv2Srw4tuw9qa02aETXQzyQUle8nfnQ==", + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.8.1.tgz", + "integrity": "sha512-olkZDELNycOWQf9LrsELFq8n05LwJgV8UkrS0cburk6FOwf8GvLam+YB+Uj5Qvryee+vwWOfQVeI5Vm0MVg7SA==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/panva" @@ -3026,13 +3026,13 @@ } }, "node_modules/openid-client": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.7.1.tgz", - "integrity": "sha512-kOiE4q0kNogr90hXsxPrKeEDuY+V0kkZazvZScOwZkYept9slsaQ3usXTaKkm6I04vLNuw5caBoX7UfrwC6x8w==", + "version": "6.8.0", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.8.0.tgz", + "integrity": "sha512-oG1d1nAVhIIE+JSjLS+7E9wY1QOJpZltkzlJdbZ7kEn7Hp3hqur2TEeQ8gLOHoHkhbRAGZJKoOnEQcLOQJuIyg==", "license": "MIT", "dependencies": { "jose": "^6.1.0", - "oauth4webapi": "^3.8.0" + "oauth4webapi": "^3.8.1" }, "funding": { "url": "https://github.com/sponsors/panva" From 37c6d465533c6532c7c8c52b0577b805dc951ede Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 02:18:02 +0000 Subject: [PATCH 081/143] build(deps-dev): bump typedoc from 0.28.12 to 0.28.13 Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.28.12 to 0.28.13. - [Release notes](https://github.com/TypeStrong/TypeDoc/releases) - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md) - [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.28.12...v0.28.13) --- updated-dependencies: - dependency-name: typedoc dependency-version: 0.28.13 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 82071dc63d..8e2f0dc125 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3775,9 +3775,9 @@ } }, "node_modules/typedoc": { - "version": "0.28.12", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.12.tgz", - "integrity": "sha512-H5ODu4f7N+myG4MfuSp2Vh6wV+WLoZaEYxKPt2y8hmmqNEMVrH69DAjjdmYivF4tP/C2jrIZCZhPalZlTU/ipA==", + "version": "0.28.13", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.13.tgz", + "integrity": "sha512-dNWY8msnYB2a+7Audha+aTF1Pu3euiE7ySp53w8kEsXoYw7dMouV5A1UsTUY345aB152RHnmRMDiovuBi7BD+w==", "dev": true, "license": "Apache-2.0", "dependencies": { From e1a039b91f0d23a0eda55c4936d353d79ac609ae Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 07:38:35 -0400 Subject: [PATCH 082/143] build(deps): bump @types/node from 24.3.1 to 24.4.0 (#2620) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.3.1 to 24.4.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.4.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 82071dc63d..d17340b7c6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1023,12 +1023,12 @@ } }, "node_modules/@types/node": { - "version": "24.3.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.1.tgz", - "integrity": "sha512-3vXmQDXy+woz+gnrTvuvNrPzekOi+Ds0ReMxw0LzBiK3a+1k0kQn9f2NWk+lgD4rJehFUmYy2gMhJ2ZI+7YP9g==", + "version": "24.4.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.4.0.tgz", + "integrity": "sha512-gUuVEAK4/u6F9wRLznPUU4WGUacSEBDPoC2TrBkw3GAnOLHBL45QdfHOXp1kJ4ypBGLxTOB+t7NJLpKoC3gznQ==", "license": "MIT", "dependencies": { - "undici-types": "~7.10.0" + "undici-types": "~7.11.0" } }, "node_modules/@types/node-fetch": { @@ -3844,9 +3844,9 @@ "license": "MIT" }, "node_modules/undici-types": { - "version": "7.10.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", - "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.11.0.tgz", + "integrity": "sha512-kt1ZriHTi7MU+Z/r9DOdAI3ONdaR3M3csEaRc6ewa4f4dTvX4cQCbJ4NkEn0ohE4hHtq85+PhPSTY+pO/1PwgA==", "license": "MIT" }, "node_modules/uri-js": { From d7859dbf8c3aeb0ed99060e1d0e6829f1aca87b3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 16 Sep 2025 02:13:05 +0000 Subject: [PATCH 083/143] build(deps-dev): bump typescript-eslint from 8.43.0 to 8.44.0 Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.43.0 to 8.44.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.44.0/packages/typescript-eslint) --- updated-dependencies: - dependency-name: typescript-eslint dependency-version: 8.44.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 122 +++++++++++++++++++++++----------------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0cc2afd78d..479e7afddc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1058,17 +1058,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.43.0.tgz", - "integrity": "sha512-8tg+gt7ENL7KewsKMKDHXR1vm8tt9eMxjJBYINf6swonlWgkYn5NwyIgXpbbDxTNU5DgpDFfj95prcTq2clIQQ==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.44.0.tgz", + "integrity": "sha512-EGDAOGX+uwwekcS0iyxVDmRV9HX6FLSM5kzrAToLTsr9OWCIKG/y3lQheCq18yZ5Xh78rRKJiEpP0ZaCs4ryOQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.43.0", - "@typescript-eslint/type-utils": "8.43.0", - "@typescript-eslint/utils": "8.43.0", - "@typescript-eslint/visitor-keys": "8.43.0", + "@typescript-eslint/scope-manager": "8.44.0", + "@typescript-eslint/type-utils": "8.44.0", + "@typescript-eslint/utils": "8.44.0", + "@typescript-eslint/visitor-keys": "8.44.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", @@ -1082,7 +1082,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.43.0", + "@typescript-eslint/parser": "^8.44.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } @@ -1098,16 +1098,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.43.0.tgz", - "integrity": "sha512-B7RIQiTsCBBmY+yW4+ILd6mF5h1FUwJsVvpqkrgpszYifetQ2Ke+Z4u6aZh0CblkUGIdR59iYVyXqqZGkZ3aBw==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.44.0.tgz", + "integrity": "sha512-VGMpFQGUQWYT9LfnPcX8ouFojyrZ/2w3K5BucvxL/spdNehccKhB4jUyB1yBCXpr2XFm0jkECxgrpXBW2ipoAw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.43.0", - "@typescript-eslint/types": "8.43.0", - "@typescript-eslint/typescript-estree": "8.43.0", - "@typescript-eslint/visitor-keys": "8.43.0", + "@typescript-eslint/scope-manager": "8.44.0", + "@typescript-eslint/types": "8.44.0", + "@typescript-eslint/typescript-estree": "8.44.0", + "@typescript-eslint/visitor-keys": "8.44.0", "debug": "^4.3.4" }, "engines": { @@ -1123,14 +1123,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.43.0.tgz", - "integrity": "sha512-htB/+D/BIGoNTQYffZw4uM4NzzuolCoaA/BusuSIcC8YjmBYQioew5VUZAYdAETPjeed0hqCaW7EHg+Robq8uw==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.44.0.tgz", + "integrity": "sha512-ZeaGNraRsq10GuEohKTo4295Z/SuGcSq2LzfGlqiuEvfArzo/VRrT0ZaJsVPuKZ55lVbNk8U6FcL+ZMH8CoyVA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.43.0", - "@typescript-eslint/types": "^8.43.0", + "@typescript-eslint/tsconfig-utils": "^8.44.0", + "@typescript-eslint/types": "^8.44.0", "debug": "^4.3.4" }, "engines": { @@ -1145,14 +1145,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.43.0.tgz", - "integrity": "sha512-daSWlQ87ZhsjrbMLvpuuMAt3y4ba57AuvadcR7f3nl8eS3BjRc8L9VLxFLk92RL5xdXOg6IQ+qKjjqNEimGuAg==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.44.0.tgz", + "integrity": "sha512-87Jv3E+al8wpD+rIdVJm/ItDBe/Im09zXIjFoipOjr5gHUhJmTzfFLuTJ/nPTMc2Srsroy4IBXwcTCHyRR7KzA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.43.0", - "@typescript-eslint/visitor-keys": "8.43.0" + "@typescript-eslint/types": "8.44.0", + "@typescript-eslint/visitor-keys": "8.44.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1163,9 +1163,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.43.0.tgz", - "integrity": "sha512-ALC2prjZcj2YqqL5X/bwWQmHA2em6/94GcbB/KKu5SX3EBDOsqztmmX1kMkvAJHzxk7TazKzJfFiEIagNV3qEA==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.44.0.tgz", + "integrity": "sha512-x5Y0+AuEPqAInc6yd0n5DAcvtoQ/vyaGwuX5HE9n6qAefk1GaedqrLQF8kQGylLUb9pnZyLf+iEiL9fr8APDtQ==", "dev": true, "license": "MIT", "engines": { @@ -1180,15 +1180,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.43.0.tgz", - "integrity": "sha512-qaH1uLBpBuBBuRf8c1mLJ6swOfzCXryhKND04Igr4pckzSEW9JX5Aw9AgW00kwfjWJF0kk0ps9ExKTfvXfw4Qg==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.44.0.tgz", + "integrity": "sha512-9cwsoSxJ8Sak67Be/hD2RNt/fsqmWnNE1iHohG8lxqLSNY8xNfyY7wloo5zpW3Nu9hxVgURevqfcH6vvKCt6yg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.43.0", - "@typescript-eslint/typescript-estree": "8.43.0", - "@typescript-eslint/utils": "8.43.0", + "@typescript-eslint/types": "8.44.0", + "@typescript-eslint/typescript-estree": "8.44.0", + "@typescript-eslint/utils": "8.44.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, @@ -1205,9 +1205,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.43.0.tgz", - "integrity": "sha512-vQ2FZaxJpydjSZJKiSW/LJsabFFvV7KgLC5DiLhkBcykhQj8iK9BOaDmQt74nnKdLvceM5xmhaTF+pLekrxEkw==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.44.0.tgz", + "integrity": "sha512-ZSl2efn44VsYM0MfDQe68RKzBz75NPgLQXuGypmym6QVOWL5kegTZuZ02xRAT9T+onqvM6T8CdQk0OwYMB6ZvA==", "dev": true, "license": "MIT", "engines": { @@ -1219,16 +1219,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.43.0.tgz", - "integrity": "sha512-7Vv6zlAhPb+cvEpP06WXXy/ZByph9iL6BQRBDj4kmBsW98AqEeQHlj/13X+sZOrKSo9/rNKH4Ul4f6EICREFdw==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.44.0.tgz", + "integrity": "sha512-lqNj6SgnGcQZwL4/SBJ3xdPEfcBuhCG8zdcwCPgYcmiPLgokiNDKlbPzCwEwu7m279J/lBYWtDYL+87OEfn8Jw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.43.0", - "@typescript-eslint/tsconfig-utils": "8.43.0", - "@typescript-eslint/types": "8.43.0", - "@typescript-eslint/visitor-keys": "8.43.0", + "@typescript-eslint/project-service": "8.44.0", + "@typescript-eslint/tsconfig-utils": "8.44.0", + "@typescript-eslint/types": "8.44.0", + "@typescript-eslint/visitor-keys": "8.44.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1248,16 +1248,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.43.0.tgz", - "integrity": "sha512-S1/tEmkUeeswxd0GGcnwuVQPFWo8NzZTOMxCvw8BX7OMxnNae+i8Tm7REQen/SwUIPoPqfKn7EaZ+YLpiB3k9g==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.44.0.tgz", + "integrity": "sha512-nktOlVcg3ALo0mYlV+L7sWUD58KG4CMj1rb2HUVOO4aL3K/6wcD+NERqd0rrA5Vg06b42YhF6cFxeixsp9Riqg==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.43.0", - "@typescript-eslint/types": "8.43.0", - "@typescript-eslint/typescript-estree": "8.43.0" + "@typescript-eslint/scope-manager": "8.44.0", + "@typescript-eslint/types": "8.44.0", + "@typescript-eslint/typescript-estree": "8.44.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1272,13 +1272,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.43.0.tgz", - "integrity": "sha512-T+S1KqRD4sg/bHfLwrpF/K3gQLBM1n7Rp7OjjikjTEssI2YJzQpi5WXoynOaQ93ERIuq3O8RBTOUYDKszUCEHw==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.44.0.tgz", + "integrity": "sha512-zaz9u8EJ4GBmnehlrpoKvj/E3dNbuQ7q0ucyZImm3cLqJ8INTc970B1qEqDX/Rzq65r3TvVTN7kHWPBoyW7DWw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.43.0", + "@typescript-eslint/types": "8.44.0", "eslint-visitor-keys": "^4.2.1" }, "engines": { @@ -3813,16 +3813,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.43.0.tgz", - "integrity": "sha512-FyRGJKUGvcFekRRcBKFBlAhnp4Ng8rhe8tuvvkR9OiU0gfd4vyvTRQHEckO6VDlH57jbeUQem2IpqPq9kLJH+w==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.44.0.tgz", + "integrity": "sha512-ib7mCkYuIzYonCq9XWF5XNw+fkj2zg629PSa9KNIQ47RXFF763S5BIX4wqz1+FLPogTZoiw8KmCiRPRa8bL3qw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.43.0", - "@typescript-eslint/parser": "8.43.0", - "@typescript-eslint/typescript-estree": "8.43.0", - "@typescript-eslint/utils": "8.43.0" + "@typescript-eslint/eslint-plugin": "8.44.0", + "@typescript-eslint/parser": "8.44.0", + "@typescript-eslint/typescript-estree": "8.44.0", + "@typescript-eslint/utils": "8.44.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" From b1e7d5bb16b3a1b114b677ff1fa33e327c0d99ad Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 16 Sep 2025 07:55:29 -0400 Subject: [PATCH 084/143] build(deps): bump @types/node from 24.4.0 to 24.5.0 (#2622) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.4.0 to 24.5.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.5.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0cc2afd78d..2e77da262b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1023,12 +1023,12 @@ } }, "node_modules/@types/node": { - "version": "24.4.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.4.0.tgz", - "integrity": "sha512-gUuVEAK4/u6F9wRLznPUU4WGUacSEBDPoC2TrBkw3GAnOLHBL45QdfHOXp1kJ4ypBGLxTOB+t7NJLpKoC3gznQ==", + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.5.0.tgz", + "integrity": "sha512-y1dMvuvJspJiPSDZUQ+WMBvF7dpnEqN4x9DDC9ie5Fs/HUZJA3wFp7EhHoVaKX/iI0cRoECV8X2jL8zi0xrHCg==", "license": "MIT", "dependencies": { - "undici-types": "~7.11.0" + "undici-types": "~7.12.0" } }, "node_modules/@types/node-fetch": { @@ -3844,9 +3844,9 @@ "license": "MIT" }, "node_modules/undici-types": { - "version": "7.11.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.11.0.tgz", - "integrity": "sha512-kt1ZriHTi7MU+Z/r9DOdAI3ONdaR3M3csEaRc6ewa4f4dTvX4cQCbJ4NkEn0ohE4hHtq85+PhPSTY+pO/1PwgA==", + "version": "7.12.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.12.0.tgz", + "integrity": "sha512-goOacqME2GYyOZZfb5Lgtu+1IDmAlAEu5xnD3+xTzS10hT0vzpf0SPjkXwAw9Jm+4n/mQGDP3LO8CPbYROeBfQ==", "license": "MIT" }, "node_modules/uri-js": { From 1108f95e6eb8a4528db00dc5978908339a969886 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 17 Sep 2025 02:15:35 +0000 Subject: [PATCH 085/143] build(deps): bump tar-fs from 3.1.0 to 3.1.1 Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 3.1.0 to 3.1.1. - [Commits](https://github.com/mafintosh/tar-fs/compare/v3.1.0...v3.1.1) --- updated-dependencies: - dependency-name: tar-fs dependency-version: 3.1.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 60d2cf0e05..03c854b08c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3639,9 +3639,10 @@ } }, "node_modules/tar-fs": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.0.tgz", - "integrity": "sha512-5Mty5y/sOF1YWj1J6GiBodjlDc05CUR8PKXrsnFAiSG0xA+GHeWLovaZPYUDXkH/1iKRf2+M5+OrRgzC7O9b7w==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.1.tgz", + "integrity": "sha512-LZA0oaPOc2fVo82Txf3gw+AkEd38szODlptMYejQUhndHMLQ9M059uXR+AfS7DNo0NpINvSqDsvyaCrBVkptWg==", + "license": "MIT", "dependencies": { "pump": "^3.0.0", "tar-stream": "^3.1.5" From 91d6c0bb61dc2f6bd5b8593a9c61ed37b824aa74 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 17 Sep 2025 07:32:07 -0400 Subject: [PATCH 086/143] build(deps): bump @types/node from 24.5.0 to 24.5.1 (#2624) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.5.0 to 24.5.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.5.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 60d2cf0e05..9f31a2a60e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1023,9 +1023,9 @@ } }, "node_modules/@types/node": { - "version": "24.5.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.5.0.tgz", - "integrity": "sha512-y1dMvuvJspJiPSDZUQ+WMBvF7dpnEqN4x9DDC9ie5Fs/HUZJA3wFp7EhHoVaKX/iI0cRoECV8X2jL8zi0xrHCg==", + "version": "24.5.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.5.1.tgz", + "integrity": "sha512-/SQdmUP2xa+1rdx7VwB9yPq8PaKej8TD5cQ+XfKDPWWC+VDJU4rvVVagXqKUzhKjtFoNA8rXDJAkCxQPAe00+Q==", "license": "MIT", "dependencies": { "undici-types": "~7.12.0" From d5cff3048354c5ea9af49220df79af33d32a65da Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 18 Sep 2025 07:05:22 -0400 Subject: [PATCH 087/143] build(deps): bump @types/node from 24.5.1 to 24.5.2 (#2626) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.5.1 to 24.5.2. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.5.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index c149feab0c..276b571090 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1023,9 +1023,9 @@ } }, "node_modules/@types/node": { - "version": "24.5.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.5.1.tgz", - "integrity": "sha512-/SQdmUP2xa+1rdx7VwB9yPq8PaKej8TD5cQ+XfKDPWWC+VDJU4rvVVagXqKUzhKjtFoNA8rXDJAkCxQPAe00+Q==", + "version": "24.5.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.5.2.tgz", + "integrity": "sha512-FYxk1I7wPv3K2XBaoyH2cTnocQEu8AOZ60hPbsyukMPLv5/5qr7V1i8PLHdl6Zf87I+xZXFvPCXYjiTFq+YSDQ==", "license": "MIT", "dependencies": { "undici-types": "~7.12.0" From d30d6e1d5fd4daf6472890d86feec27cb2347838 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Sep 2025 02:12:16 +0000 Subject: [PATCH 088/143] build(deps-dev): bump eslint from 9.35.0 to 9.36.0 Bumps [eslint](https://github.com/eslint/eslint) from 9.35.0 to 9.36.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v9.35.0...v9.36.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 9.36.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 276b571090..fd3735ee61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -629,9 +629,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.35.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.35.0.tgz", - "integrity": "sha512-30iXE9whjlILfWobBkNerJo+TXYsgVM5ERQwMcMKCHckHflCmf7wXDAHlARoWnh0s1U72WqlbeyE7iAcCzuCPw==", + "version": "9.36.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.36.0.tgz", + "integrity": "sha512-uhCbYtYynH30iZErszX78U+nR3pJU3RHGQ57NXy5QupD4SBVwDeU8TNBy+MjMngc1UyIW9noKqsRqfjQTBU2dw==", "dev": true, "license": "MIT", "engines": { @@ -1902,9 +1902,9 @@ } }, "node_modules/eslint": { - "version": "9.35.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.35.0.tgz", - "integrity": "sha512-QePbBFMJFjgmlE+cXAlbHZbHpdFVS2E/6vzCy7aKlebddvl1vadiC4JFV5u/wqTkNUwEV8WrQi257jf5f06hrg==", + "version": "9.36.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.36.0.tgz", + "integrity": "sha512-hB4FIzXovouYzwzECDcUkJ4OcfOEkXTv2zRY6B9bkwjx/cprAq0uvm1nl7zvQ0/TsUk0zQiN4uPfJpB9m+rPMQ==", "dev": true, "license": "MIT", "dependencies": { @@ -1914,7 +1914,7 @@ "@eslint/config-helpers": "^0.3.1", "@eslint/core": "^0.15.2", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.35.0", + "@eslint/js": "9.36.0", "@eslint/plugin-kit": "^0.3.5", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", From 2b3bfcd0548ea0b9f063b41f2d8dca53d4f8148e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 23 Sep 2025 02:13:09 +0000 Subject: [PATCH 089/143] build(deps-dev): bump typescript-eslint from 8.44.0 to 8.44.1 Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.44.0 to 8.44.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.44.1/packages/typescript-eslint) --- updated-dependencies: - dependency-name: typescript-eslint dependency-version: 8.44.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 122 +++++++++++++++++++++++----------------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/package-lock.json b/package-lock.json index fd3735ee61..69fe2c5a71 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1058,17 +1058,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.44.0.tgz", - "integrity": "sha512-EGDAOGX+uwwekcS0iyxVDmRV9HX6FLSM5kzrAToLTsr9OWCIKG/y3lQheCq18yZ5Xh78rRKJiEpP0ZaCs4ryOQ==", + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.44.1.tgz", + "integrity": "sha512-molgphGqOBT7t4YKCSkbasmu1tb1MgrZ2szGzHbclF7PNmOkSTQVHy+2jXOSnxvR3+Xe1yySHFZoqMpz3TfQsw==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.44.0", - "@typescript-eslint/type-utils": "8.44.0", - "@typescript-eslint/utils": "8.44.0", - "@typescript-eslint/visitor-keys": "8.44.0", + "@typescript-eslint/scope-manager": "8.44.1", + "@typescript-eslint/type-utils": "8.44.1", + "@typescript-eslint/utils": "8.44.1", + "@typescript-eslint/visitor-keys": "8.44.1", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", @@ -1082,7 +1082,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.44.0", + "@typescript-eslint/parser": "^8.44.1", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } @@ -1098,16 +1098,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.44.0.tgz", - "integrity": "sha512-VGMpFQGUQWYT9LfnPcX8ouFojyrZ/2w3K5BucvxL/spdNehccKhB4jUyB1yBCXpr2XFm0jkECxgrpXBW2ipoAw==", + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.44.1.tgz", + "integrity": "sha512-EHrrEsyhOhxYt8MTg4zTF+DJMuNBzWwgvvOYNj/zm1vnaD/IC5zCXFehZv94Piqa2cRFfXrTFxIvO95L7Qc/cw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.44.0", - "@typescript-eslint/types": "8.44.0", - "@typescript-eslint/typescript-estree": "8.44.0", - "@typescript-eslint/visitor-keys": "8.44.0", + "@typescript-eslint/scope-manager": "8.44.1", + "@typescript-eslint/types": "8.44.1", + "@typescript-eslint/typescript-estree": "8.44.1", + "@typescript-eslint/visitor-keys": "8.44.1", "debug": "^4.3.4" }, "engines": { @@ -1123,14 +1123,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.44.0.tgz", - "integrity": "sha512-ZeaGNraRsq10GuEohKTo4295Z/SuGcSq2LzfGlqiuEvfArzo/VRrT0ZaJsVPuKZ55lVbNk8U6FcL+ZMH8CoyVA==", + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.44.1.tgz", + "integrity": "sha512-ycSa60eGg8GWAkVsKV4E6Nz33h+HjTXbsDT4FILyL8Obk5/mx4tbvCNsLf9zret3ipSumAOG89UcCs/KRaKYrA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.44.0", - "@typescript-eslint/types": "^8.44.0", + "@typescript-eslint/tsconfig-utils": "^8.44.1", + "@typescript-eslint/types": "^8.44.1", "debug": "^4.3.4" }, "engines": { @@ -1145,14 +1145,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.44.0.tgz", - "integrity": "sha512-87Jv3E+al8wpD+rIdVJm/ItDBe/Im09zXIjFoipOjr5gHUhJmTzfFLuTJ/nPTMc2Srsroy4IBXwcTCHyRR7KzA==", + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.44.1.tgz", + "integrity": "sha512-NdhWHgmynpSvyhchGLXh+w12OMT308Gm25JoRIyTZqEbApiBiQHD/8xgb6LqCWCFcxFtWwaVdFsLPQI3jvhywg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.44.0", - "@typescript-eslint/visitor-keys": "8.44.0" + "@typescript-eslint/types": "8.44.1", + "@typescript-eslint/visitor-keys": "8.44.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1163,9 +1163,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.44.0.tgz", - "integrity": "sha512-x5Y0+AuEPqAInc6yd0n5DAcvtoQ/vyaGwuX5HE9n6qAefk1GaedqrLQF8kQGylLUb9pnZyLf+iEiL9fr8APDtQ==", + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.44.1.tgz", + "integrity": "sha512-B5OyACouEjuIvof3o86lRMvyDsFwZm+4fBOqFHccIctYgBjqR3qT39FBYGN87khcgf0ExpdCBeGKpKRhSFTjKQ==", "dev": true, "license": "MIT", "engines": { @@ -1180,15 +1180,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.44.0.tgz", - "integrity": "sha512-9cwsoSxJ8Sak67Be/hD2RNt/fsqmWnNE1iHohG8lxqLSNY8xNfyY7wloo5zpW3Nu9hxVgURevqfcH6vvKCt6yg==", + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.44.1.tgz", + "integrity": "sha512-KdEerZqHWXsRNKjF9NYswNISnFzXfXNDfPxoTh7tqohU/PRIbwTmsjGK6V9/RTYWau7NZvfo52lgVk+sJh0K3g==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.44.0", - "@typescript-eslint/typescript-estree": "8.44.0", - "@typescript-eslint/utils": "8.44.0", + "@typescript-eslint/types": "8.44.1", + "@typescript-eslint/typescript-estree": "8.44.1", + "@typescript-eslint/utils": "8.44.1", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, @@ -1205,9 +1205,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.44.0.tgz", - "integrity": "sha512-ZSl2efn44VsYM0MfDQe68RKzBz75NPgLQXuGypmym6QVOWL5kegTZuZ02xRAT9T+onqvM6T8CdQk0OwYMB6ZvA==", + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.44.1.tgz", + "integrity": "sha512-Lk7uj7y9uQUOEguiDIDLYLJOrYHQa7oBiURYVFqIpGxclAFQ78f6VUOM8lI2XEuNOKNB7XuvM2+2cMXAoq4ALQ==", "dev": true, "license": "MIT", "engines": { @@ -1219,16 +1219,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.44.0.tgz", - "integrity": "sha512-lqNj6SgnGcQZwL4/SBJ3xdPEfcBuhCG8zdcwCPgYcmiPLgokiNDKlbPzCwEwu7m279J/lBYWtDYL+87OEfn8Jw==", + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.44.1.tgz", + "integrity": "sha512-qnQJ+mVa7szevdEyvfItbO5Vo+GfZ4/GZWWDRRLjrxYPkhM+6zYB2vRYwCsoJLzqFCdZT4mEqyJoyzkunsZ96A==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.44.0", - "@typescript-eslint/tsconfig-utils": "8.44.0", - "@typescript-eslint/types": "8.44.0", - "@typescript-eslint/visitor-keys": "8.44.0", + "@typescript-eslint/project-service": "8.44.1", + "@typescript-eslint/tsconfig-utils": "8.44.1", + "@typescript-eslint/types": "8.44.1", + "@typescript-eslint/visitor-keys": "8.44.1", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1248,16 +1248,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.44.0.tgz", - "integrity": "sha512-nktOlVcg3ALo0mYlV+L7sWUD58KG4CMj1rb2HUVOO4aL3K/6wcD+NERqd0rrA5Vg06b42YhF6cFxeixsp9Riqg==", + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.44.1.tgz", + "integrity": "sha512-DpX5Fp6edTlocMCwA+mHY8Mra+pPjRZ0TfHkXI8QFelIKcbADQz1LUPNtzOFUriBB2UYqw4Pi9+xV4w9ZczHFg==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.44.0", - "@typescript-eslint/types": "8.44.0", - "@typescript-eslint/typescript-estree": "8.44.0" + "@typescript-eslint/scope-manager": "8.44.1", + "@typescript-eslint/types": "8.44.1", + "@typescript-eslint/typescript-estree": "8.44.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1272,13 +1272,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.44.0.tgz", - "integrity": "sha512-zaz9u8EJ4GBmnehlrpoKvj/E3dNbuQ7q0ucyZImm3cLqJ8INTc970B1qEqDX/Rzq65r3TvVTN7kHWPBoyW7DWw==", + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.44.1.tgz", + "integrity": "sha512-576+u0QD+Jp3tZzvfRfxon0EA2lzcDt3lhUbsC6Lgzy9x2VR4E+JUiNyGHi5T8vk0TV+fpJ5GLG1JsJuWCaKhw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.44.0", + "@typescript-eslint/types": "8.44.1", "eslint-visitor-keys": "^4.2.1" }, "engines": { @@ -3814,16 +3814,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.44.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.44.0.tgz", - "integrity": "sha512-ib7mCkYuIzYonCq9XWF5XNw+fkj2zg629PSa9KNIQ47RXFF763S5BIX4wqz1+FLPogTZoiw8KmCiRPRa8bL3qw==", + "version": "8.44.1", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.44.1.tgz", + "integrity": "sha512-0ws8uWGrUVTjEeN2OM4K1pLKHK/4NiNP/vz6ns+LjT/6sqpaYzIVFajZb1fj/IDwpsrrHb3Jy0Qm5u9CPcKaeg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.44.0", - "@typescript-eslint/parser": "8.44.0", - "@typescript-eslint/typescript-estree": "8.44.0", - "@typescript-eslint/utils": "8.44.0" + "@typescript-eslint/eslint-plugin": "8.44.1", + "@typescript-eslint/parser": "8.44.1", + "@typescript-eslint/typescript-estree": "8.44.1", + "@typescript-eslint/utils": "8.44.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" From 860aa9bcfa830ff2444ba3371f428cced2f31d83 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 26 Sep 2025 02:15:07 +0000 Subject: [PATCH 090/143] build(deps-dev): bump tsx from 4.20.5 to 4.20.6 Bumps [tsx](https://github.com/privatenumber/tsx) from 4.20.5 to 4.20.6. - [Release notes](https://github.com/privatenumber/tsx/releases) - [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs) - [Commits](https://github.com/privatenumber/tsx/compare/v4.20.5...v4.20.6) --- updated-dependencies: - dependency-name: tsx dependency-version: 4.20.6 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 69fe2c5a71..135086a236 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3743,9 +3743,9 @@ "license": "0BSD" }, "node_modules/tsx": { - "version": "4.20.5", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.5.tgz", - "integrity": "sha512-+wKjMNU9w/EaQayHXb7WA7ZaHY6hN8WgfvHNQ3t1PnU91/7O8TcTnIhCDYTZwnt8JsO9IBqZ30Ln1r7pPF52Aw==", + "version": "4.20.6", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.6.tgz", + "integrity": "sha512-ytQKuwgmrrkDTFP4LjR0ToE2nqgy886GpvRSpU0JAnrdBYppuY5rLkRUYPU1yCryb24SsKBTL/hlDQAEFVwtZg==", "dev": true, "license": "MIT", "dependencies": { From a14aa674a2dffc5b5fe3a96fe4443e9eff1332e5 Mon Sep 17 00:00:00 2001 From: Daniel Herbolt Date: Fri, 26 Sep 2025 15:17:52 +0200 Subject: [PATCH 091/143] feat: allow to set the cwd in copyFromPod for use in tar --- src/cp.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/cp.ts b/src/cp.ts index d84d34cf86..39f8e4213b 100644 --- a/src/cp.ts +++ b/src/cp.ts @@ -18,6 +18,7 @@ export class Cp { * @param {string} containerName - The name of the container in the pod to exec the command inside. * @param {string} srcPath - The source path in the pod * @param {string} tgtPath - The target path in local + * @param {string} cwd - The directory that is used as the parent in the pod when downloading */ public async cpFromPod( namespace: string, @@ -25,10 +26,15 @@ export class Cp { containerName: string, srcPath: string, tgtPath: string, + cwd?: string, ): Promise { const tmpFile = tmp.fileSync(); const tmpFileName = tmpFile.name; - const command = ['tar', 'zcf', '-', srcPath]; + const command = ['tar', 'zcf', '-']; + if (cwd) { + command.push('-C', cwd); + } + command.push(srcPath); const writerStream = fs.createWriteStream(tmpFileName); const errStream = new WritableStreamBuffer(); this.execInstance.exec( From 1786fd38811f81fa4c5cd1d8bf30d75fd6095911 Mon Sep 17 00:00:00 2001 From: Brendan Burns <5751682+brendandburns@users.noreply.github.com> Date: Fri, 26 Sep 2025 16:53:32 -0700 Subject: [PATCH 092/143] Fix syntax for environment variable exports --- .github/workflows/generate-javascript.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate-javascript.yml b/.github/workflows/generate-javascript.yml index f6776f2549..efdb1b666c 100644 --- a/.github/workflows/generate-javascript.yml +++ b/.github/workflows/generate-javascript.yml @@ -26,8 +26,8 @@ jobs: node-version: '20' - name: Generate Openapi run: | - echo "export KUBERNETES_BRANCH=${{ github.event.inputs.kubernetesBranch }} >> ./settings" - echo "export GEN_COMMIT="${{ github.event.inputs.genCommit }}" >> ./settings" + echo "export KUBERNETES_BRANCH="${{ github.event.inputs.kubernetesBranch }}"" >> ./settings + echo "export GEN_COMMIT="${{ github.event.inputs.genCommit }}"" >> ./settings ./generate-client.sh - name: Generate Branch Name run: | From 8452b86ef3b641222b5131f0442fdee8f4795380 Mon Sep 17 00:00:00 2001 From: Brendan Burns <5751682+brendandburns@users.noreply.github.com> Date: Fri, 26 Sep 2025 23:57:44 +0000 Subject: [PATCH 093/143] Rev up to Kubernetes 1.34.0 --- settings | 2 +- src/gen/.openapi-generator/FILES | 119 +- .../swagger.json-default.sha256 | 2 +- src/gen/AdmissionregistrationV1beta1Api.md | 729 +- src/gen/AppsV1Api.md | 720 + src/gen/BatchV1Api.md | 360 + src/gen/CertificatesV1alpha1Api.md | 1286 +- src/gen/CoreV1Api.md | 650 + src/gen/ResourceV1Api.md | 4238 +++++ src/gen/ResourceV1alpha3Api.md | 4414 +---- src/gen/ResourceV1beta1Api.md | 131 + src/gen/ResourceV1beta2Api.md | 131 + src/gen/StorageV1Api.md | 701 +- .../apis/AdmissionregistrationV1beta1Api.ts | 701 +- src/gen/apis/CertificatesV1alpha1Api.ts | 1722 +- src/gen/apis/ResourceV1Api.ts | 4396 +++++ src/gen/apis/ResourceV1alpha3Api.ts | 4885 +----- src/gen/apis/StorageV1Api.ts | 1013 +- src/gen/index.ts | 2 +- ...AdmissionregistrationV1ServiceReference.ts | 2 +- ...issionregistrationV1WebhookClientConfig.ts | 2 +- .../models/ApiextensionsV1ServiceReference.ts | 2 +- .../ApiextensionsV1WebhookClientConfig.ts | 2 +- .../ApiregistrationV1ServiceReference.ts | 2 +- .../models/AuthenticationV1TokenRequest.ts | 2 +- src/gen/models/CoreV1EndpointPort.ts | 2 +- src/gen/models/CoreV1Event.ts | 2 +- src/gen/models/CoreV1EventList.ts | 2 +- src/gen/models/CoreV1EventSeries.ts | 2 +- src/gen/models/CoreV1ResourceClaim.ts | 52 + src/gen/models/DiscoveryV1EndpointPort.ts | 2 +- src/gen/models/EventsV1Event.ts | 2 +- src/gen/models/EventsV1EventList.ts | 2 +- src/gen/models/EventsV1EventSeries.ts | 2 +- src/gen/models/FlowcontrolV1Subject.ts | 2 +- src/gen/models/ObjectSerializer.ts | 351 +- src/gen/models/RbacV1Subject.ts | 2 +- src/gen/models/ResourceV1ResourceClaim.ts | 76 + src/gen/models/StorageV1TokenRequest.ts | 2 +- src/gen/models/V1APIGroup.ts | 2 +- src/gen/models/V1APIGroupList.ts | 2 +- src/gen/models/V1APIResource.ts | 2 +- src/gen/models/V1APIResourceList.ts | 2 +- src/gen/models/V1APIService.ts | 2 +- src/gen/models/V1APIServiceCondition.ts | 2 +- src/gen/models/V1APIServiceList.ts | 2 +- src/gen/models/V1APIServiceSpec.ts | 2 +- src/gen/models/V1APIServiceStatus.ts | 2 +- src/gen/models/V1APIVersions.ts | 2 +- .../V1AWSElasticBlockStoreVolumeSource.ts | 2 +- src/gen/models/V1Affinity.ts | 2 +- src/gen/models/V1AggregationRule.ts | 2 +- src/gen/models/V1AllocatedDeviceStatus.ts | 101 + src/gen/models/V1AllocationResult.ts | 58 + src/gen/models/V1AppArmorProfile.ts | 2 +- src/gen/models/V1AttachedVolume.ts | 2 +- src/gen/models/V1AuditAnnotation.ts | 2 +- src/gen/models/V1AzureDiskVolumeSource.ts | 2 +- .../V1AzureFilePersistentVolumeSource.ts | 2 +- src/gen/models/V1AzureFileVolumeSource.ts | 2 +- src/gen/models/V1Binding.ts | 2 +- src/gen/models/V1BoundObjectReference.ts | 2 +- src/gen/models/V1CELDeviceSelector.ts | 42 + src/gen/models/V1CSIDriver.ts | 2 +- src/gen/models/V1CSIDriverList.ts | 2 +- src/gen/models/V1CSIDriverSpec.ts | 6 +- src/gen/models/V1CSINode.ts | 2 +- src/gen/models/V1CSINodeDriver.ts | 2 +- src/gen/models/V1CSINodeList.ts | 2 +- src/gen/models/V1CSINodeSpec.ts | 2 +- src/gen/models/V1CSIPersistentVolumeSource.ts | 2 +- src/gen/models/V1CSIStorageCapacity.ts | 2 +- src/gen/models/V1CSIStorageCapacityList.ts | 2 +- src/gen/models/V1CSIVolumeSource.ts | 2 +- src/gen/models/V1Capabilities.ts | 2 +- src/gen/models/V1CapacityRequestPolicy.ts | 60 + .../models/V1CapacityRequestPolicyRange.ts | 62 + src/gen/models/V1CapacityRequirements.ts | 42 + .../models/V1CephFSPersistentVolumeSource.ts | 2 +- src/gen/models/V1CephFSVolumeSource.ts | 2 +- src/gen/models/V1CertificateSigningRequest.ts | 2 +- .../V1CertificateSigningRequestCondition.ts | 2 +- .../models/V1CertificateSigningRequestList.ts | 2 +- .../models/V1CertificateSigningRequestSpec.ts | 2 +- .../V1CertificateSigningRequestStatus.ts | 2 +- .../models/V1CinderPersistentVolumeSource.ts | 2 +- src/gen/models/V1CinderVolumeSource.ts | 2 +- src/gen/models/V1ClientIPConfig.ts | 2 +- src/gen/models/V1ClusterRole.ts | 2 +- src/gen/models/V1ClusterRoleBinding.ts | 2 +- src/gen/models/V1ClusterRoleBindingList.ts | 2 +- src/gen/models/V1ClusterRoleList.ts | 2 +- .../models/V1ClusterTrustBundleProjection.ts | 2 +- src/gen/models/V1ComponentCondition.ts | 2 +- src/gen/models/V1ComponentStatus.ts | 2 +- src/gen/models/V1ComponentStatusList.ts | 2 +- src/gen/models/V1Condition.ts | 2 +- src/gen/models/V1ConfigMap.ts | 2 +- src/gen/models/V1ConfigMapEnvSource.ts | 2 +- src/gen/models/V1ConfigMapKeySelector.ts | 2 +- src/gen/models/V1ConfigMapList.ts | 2 +- src/gen/models/V1ConfigMapNodeConfigSource.ts | 2 +- src/gen/models/V1ConfigMapProjection.ts | 2 +- src/gen/models/V1ConfigMapVolumeSource.ts | 2 +- src/gen/models/V1Container.ts | 17 +- .../V1ContainerExtendedResourceRequest.ts | 62 + src/gen/models/V1ContainerImage.ts | 2 +- src/gen/models/V1ContainerPort.ts | 2 +- src/gen/models/V1ContainerResizePolicy.ts | 2 +- src/gen/models/V1ContainerRestartRule.ts | 50 + .../V1ContainerRestartRuleOnExitCodes.ts | 52 + src/gen/models/V1ContainerState.ts | 2 +- src/gen/models/V1ContainerStateRunning.ts | 2 +- src/gen/models/V1ContainerStateTerminated.ts | 2 +- src/gen/models/V1ContainerStateWaiting.ts | 2 +- src/gen/models/V1ContainerStatus.ts | 2 +- src/gen/models/V1ContainerUser.ts | 2 +- src/gen/models/V1ControllerRevision.ts | 2 +- src/gen/models/V1ControllerRevisionList.ts | 2 +- src/gen/models/V1Counter.ts | 42 + src/gen/models/V1CounterSet.ts | 53 + src/gen/models/V1CronJob.ts | 2 +- src/gen/models/V1CronJobList.ts | 2 +- src/gen/models/V1CronJobSpec.ts | 2 +- src/gen/models/V1CronJobStatus.ts | 2 +- .../models/V1CrossVersionObjectReference.ts | 2 +- .../V1CustomResourceColumnDefinition.ts | 2 +- src/gen/models/V1CustomResourceConversion.ts | 2 +- src/gen/models/V1CustomResourceDefinition.ts | 2 +- .../V1CustomResourceDefinitionCondition.ts | 2 +- .../models/V1CustomResourceDefinitionList.ts | 2 +- .../models/V1CustomResourceDefinitionNames.ts | 2 +- .../models/V1CustomResourceDefinitionSpec.ts | 2 +- .../V1CustomResourceDefinitionStatus.ts | 2 +- .../V1CustomResourceDefinitionVersion.ts | 2 +- .../V1CustomResourceSubresourceScale.ts | 2 +- .../models/V1CustomResourceSubresources.ts | 2 +- src/gen/models/V1CustomResourceValidation.ts | 2 +- src/gen/models/V1DaemonEndpoint.ts | 2 +- src/gen/models/V1DaemonSet.ts | 2 +- src/gen/models/V1DaemonSetCondition.ts | 2 +- src/gen/models/V1DaemonSetList.ts | 2 +- src/gen/models/V1DaemonSetSpec.ts | 2 +- src/gen/models/V1DaemonSetStatus.ts | 2 +- src/gen/models/V1DaemonSetUpdateStrategy.ts | 2 +- src/gen/models/V1DeleteOptions.ts | 2 +- src/gen/models/V1Deployment.ts | 2 +- src/gen/models/V1DeploymentCondition.ts | 2 +- src/gen/models/V1DeploymentList.ts | 2 +- src/gen/models/V1DeploymentSpec.ts | 2 +- src/gen/models/V1DeploymentStatus.ts | 2 +- src/gen/models/V1DeploymentStrategy.ts | 2 +- src/gen/models/V1Device.ts | 154 + .../models/V1DeviceAllocationConfiguration.ts | 60 + src/gen/models/V1DeviceAllocationResult.ts | 54 + src/gen/models/V1DeviceAttribute.ts | 72 + src/gen/models/V1DeviceCapacity.ts | 50 + src/gen/models/V1DeviceClaim.ts | 65 + src/gen/models/V1DeviceClaimConfiguration.ts | 50 + src/gen/models/V1DeviceClass.ts | 68 + src/gen/models/V1DeviceClassConfiguration.ts | 40 + src/gen/models/V1DeviceClassList.ts | 71 + src/gen/models/V1DeviceClassSpec.ts | 64 + src/gen/models/V1DeviceConstraint.ts | 62 + src/gen/models/V1DeviceCounterConsumption.ts | 53 + src/gen/models/V1DeviceRequest.ts | 61 + .../models/V1DeviceRequestAllocationResult.ts | 133 + src/gen/models/V1DeviceSelector.ts | 40 + src/gen/models/V1DeviceSubRequest.ts | 102 + src/gen/models/V1DeviceTaint.ts | 72 + src/gen/models/V1DeviceToleration.ts | 82 + src/gen/models/V1DownwardAPIProjection.ts | 2 +- src/gen/models/V1DownwardAPIVolumeFile.ts | 2 +- src/gen/models/V1DownwardAPIVolumeSource.ts | 2 +- src/gen/models/V1EmptyDirVolumeSource.ts | 2 +- src/gen/models/V1Endpoint.ts | 2 +- src/gen/models/V1EndpointAddress.ts | 2 +- src/gen/models/V1EndpointConditions.ts | 2 +- src/gen/models/V1EndpointHints.ts | 2 +- src/gen/models/V1EndpointSlice.ts | 2 +- src/gen/models/V1EndpointSliceList.ts | 2 +- src/gen/models/V1EndpointSubset.ts | 2 +- src/gen/models/V1Endpoints.ts | 2 +- src/gen/models/V1EndpointsList.ts | 2 +- src/gen/models/V1EnvFromSource.ts | 4 +- src/gen/models/V1EnvVar.ts | 4 +- src/gen/models/V1EnvVarSource.ts | 10 +- src/gen/models/V1EphemeralContainer.ts | 17 +- src/gen/models/V1EphemeralVolumeSource.ts | 2 +- src/gen/models/V1EventSource.ts | 2 +- src/gen/models/V1Eviction.ts | 2 +- src/gen/models/V1ExactDeviceRequest.ts | 102 + src/gen/models/V1ExecAction.ts | 2 +- .../V1ExemptPriorityLevelConfiguration.ts | 2 +- src/gen/models/V1ExpressionWarning.ts | 2 +- src/gen/models/V1ExternalDocumentation.ts | 2 +- src/gen/models/V1FCVolumeSource.ts | 2 +- src/gen/models/V1FieldSelectorAttributes.ts | 2 +- src/gen/models/V1FieldSelectorRequirement.ts | 2 +- src/gen/models/V1FileKeySelector.ts | 72 + .../models/V1FlexPersistentVolumeSource.ts | 2 +- src/gen/models/V1FlexVolumeSource.ts | 2 +- src/gen/models/V1FlockerVolumeSource.ts | 2 +- src/gen/models/V1FlowDistinguisherMethod.ts | 2 +- src/gen/models/V1FlowSchema.ts | 2 +- src/gen/models/V1FlowSchemaCondition.ts | 2 +- src/gen/models/V1FlowSchemaList.ts | 2 +- src/gen/models/V1FlowSchemaSpec.ts | 2 +- src/gen/models/V1FlowSchemaStatus.ts | 2 +- src/gen/models/V1ForNode.ts | 2 +- src/gen/models/V1ForZone.ts | 2 +- .../models/V1GCEPersistentDiskVolumeSource.ts | 2 +- src/gen/models/V1GRPCAction.ts | 2 +- src/gen/models/V1GitRepoVolumeSource.ts | 2 +- .../V1GlusterfsPersistentVolumeSource.ts | 2 +- src/gen/models/V1GlusterfsVolumeSource.ts | 4 +- src/gen/models/V1GroupSubject.ts | 2 +- src/gen/models/V1GroupVersionForDiscovery.ts | 2 +- src/gen/models/V1HTTPGetAction.ts | 2 +- src/gen/models/V1HTTPHeader.ts | 2 +- src/gen/models/V1HTTPIngressPath.ts | 2 +- src/gen/models/V1HTTPIngressRuleValue.ts | 2 +- src/gen/models/V1HorizontalPodAutoscaler.ts | 2 +- .../models/V1HorizontalPodAutoscalerList.ts | 2 +- .../models/V1HorizontalPodAutoscalerSpec.ts | 2 +- .../models/V1HorizontalPodAutoscalerStatus.ts | 2 +- src/gen/models/V1HostAlias.ts | 2 +- src/gen/models/V1HostIP.ts | 2 +- src/gen/models/V1HostPathVolumeSource.ts | 2 +- src/gen/models/V1IPAddress.ts | 2 +- src/gen/models/V1IPAddressList.ts | 2 +- src/gen/models/V1IPAddressSpec.ts | 2 +- src/gen/models/V1IPBlock.ts | 2 +- .../models/V1ISCSIPersistentVolumeSource.ts | 2 +- src/gen/models/V1ISCSIVolumeSource.ts | 2 +- src/gen/models/V1ImageVolumeSource.ts | 2 +- src/gen/models/V1Ingress.ts | 2 +- src/gen/models/V1IngressBackend.ts | 2 +- src/gen/models/V1IngressClass.ts | 2 +- src/gen/models/V1IngressClassList.ts | 2 +- .../V1IngressClassParametersReference.ts | 2 +- src/gen/models/V1IngressClassSpec.ts | 2 +- src/gen/models/V1IngressList.ts | 2 +- .../models/V1IngressLoadBalancerIngress.ts | 2 +- src/gen/models/V1IngressLoadBalancerStatus.ts | 2 +- src/gen/models/V1IngressPortStatus.ts | 2 +- src/gen/models/V1IngressRule.ts | 2 +- src/gen/models/V1IngressServiceBackend.ts | 2 +- src/gen/models/V1IngressSpec.ts | 2 +- src/gen/models/V1IngressStatus.ts | 2 +- src/gen/models/V1IngressTLS.ts | 2 +- src/gen/models/V1JSONSchemaProps.ts | 2 +- src/gen/models/V1Job.ts | 2 +- src/gen/models/V1JobCondition.ts | 2 +- src/gen/models/V1JobList.ts | 2 +- src/gen/models/V1JobSpec.ts | 6 +- src/gen/models/V1JobStatus.ts | 2 +- src/gen/models/V1JobTemplateSpec.ts | 2 +- src/gen/models/V1KeyToPath.ts | 2 +- src/gen/models/V1LabelSelector.ts | 2 +- src/gen/models/V1LabelSelectorAttributes.ts | 2 +- src/gen/models/V1LabelSelectorRequirement.ts | 2 +- src/gen/models/V1Lease.ts | 2 +- src/gen/models/V1LeaseList.ts | 2 +- src/gen/models/V1LeaseSpec.ts | 2 +- src/gen/models/V1Lifecycle.ts | 2 +- src/gen/models/V1LifecycleHandler.ts | 2 +- src/gen/models/V1LimitRange.ts | 2 +- src/gen/models/V1LimitRangeItem.ts | 2 +- src/gen/models/V1LimitRangeList.ts | 2 +- src/gen/models/V1LimitRangeSpec.ts | 2 +- src/gen/models/V1LimitResponse.ts | 2 +- .../V1LimitedPriorityLevelConfiguration.ts | 2 +- src/gen/models/V1LinuxContainerUser.ts | 2 +- src/gen/models/V1ListMeta.ts | 2 +- src/gen/models/V1LoadBalancerIngress.ts | 2 +- src/gen/models/V1LoadBalancerStatus.ts | 2 +- src/gen/models/V1LocalObjectReference.ts | 2 +- src/gen/models/V1LocalSubjectAccessReview.ts | 2 +- src/gen/models/V1LocalVolumeSource.ts | 2 +- src/gen/models/V1ManagedFieldsEntry.ts | 2 +- src/gen/models/V1MatchCondition.ts | 2 +- src/gen/models/V1MatchResources.ts | 2 +- src/gen/models/V1ModifyVolumeStatus.ts | 2 +- src/gen/models/V1MutatingWebhook.ts | 2 +- .../models/V1MutatingWebhookConfiguration.ts | 2 +- .../V1MutatingWebhookConfigurationList.ts | 2 +- src/gen/models/V1NFSVolumeSource.ts | 2 +- src/gen/models/V1NamedRuleWithOperations.ts | 2 +- src/gen/models/V1Namespace.ts | 2 +- src/gen/models/V1NamespaceCondition.ts | 2 +- src/gen/models/V1NamespaceList.ts | 2 +- src/gen/models/V1NamespaceSpec.ts | 2 +- src/gen/models/V1NamespaceStatus.ts | 2 +- src/gen/models/V1NetworkDeviceData.ts | 62 + src/gen/models/V1NetworkPolicy.ts | 2 +- src/gen/models/V1NetworkPolicyEgressRule.ts | 2 +- src/gen/models/V1NetworkPolicyIngressRule.ts | 2 +- src/gen/models/V1NetworkPolicyList.ts | 2 +- src/gen/models/V1NetworkPolicyPeer.ts | 2 +- src/gen/models/V1NetworkPolicyPort.ts | 2 +- src/gen/models/V1NetworkPolicySpec.ts | 4 +- src/gen/models/V1Node.ts | 2 +- src/gen/models/V1NodeAddress.ts | 2 +- src/gen/models/V1NodeAffinity.ts | 2 +- src/gen/models/V1NodeCondition.ts | 2 +- src/gen/models/V1NodeConfigSource.ts | 2 +- src/gen/models/V1NodeConfigStatus.ts | 2 +- src/gen/models/V1NodeDaemonEndpoints.ts | 2 +- src/gen/models/V1NodeFeatures.ts | 2 +- src/gen/models/V1NodeList.ts | 2 +- src/gen/models/V1NodeRuntimeHandler.ts | 2 +- .../models/V1NodeRuntimeHandlerFeatures.ts | 2 +- src/gen/models/V1NodeSelector.ts | 2 +- src/gen/models/V1NodeSelectorRequirement.ts | 2 +- src/gen/models/V1NodeSelectorTerm.ts | 2 +- src/gen/models/V1NodeSpec.ts | 2 +- src/gen/models/V1NodeStatus.ts | 2 +- src/gen/models/V1NodeSwapStatus.ts | 2 +- src/gen/models/V1NodeSystemInfo.ts | 2 +- src/gen/models/V1NonResourceAttributes.ts | 2 +- src/gen/models/V1NonResourcePolicyRule.ts | 2 +- src/gen/models/V1NonResourceRule.ts | 2 +- src/gen/models/V1ObjectFieldSelector.ts | 2 +- src/gen/models/V1ObjectMeta.ts | 2 +- src/gen/models/V1ObjectReference.ts | 2 +- src/gen/models/V1OpaqueDeviceConfiguration.ts | 52 + src/gen/models/V1Overhead.ts | 2 +- src/gen/models/V1OwnerReference.ts | 2 +- src/gen/models/V1ParamKind.ts | 2 +- src/gen/models/V1ParamRef.ts | 2 +- src/gen/models/V1ParentReference.ts | 2 +- src/gen/models/V1PersistentVolume.ts | 2 +- src/gen/models/V1PersistentVolumeClaim.ts | 2 +- .../V1PersistentVolumeClaimCondition.ts | 2 +- src/gen/models/V1PersistentVolumeClaimList.ts | 2 +- src/gen/models/V1PersistentVolumeClaimSpec.ts | 4 +- .../models/V1PersistentVolumeClaimStatus.ts | 4 +- .../models/V1PersistentVolumeClaimTemplate.ts | 2 +- .../V1PersistentVolumeClaimVolumeSource.ts | 2 +- src/gen/models/V1PersistentVolumeList.ts | 2 +- src/gen/models/V1PersistentVolumeSpec.ts | 4 +- src/gen/models/V1PersistentVolumeStatus.ts | 2 +- .../V1PhotonPersistentDiskVolumeSource.ts | 2 +- src/gen/models/V1Pod.ts | 2 +- src/gen/models/V1PodAffinity.ts | 2 +- src/gen/models/V1PodAffinityTerm.ts | 2 +- src/gen/models/V1PodAntiAffinity.ts | 4 +- src/gen/models/V1PodCertificateProjection.ts | 92 + src/gen/models/V1PodCondition.ts | 2 +- src/gen/models/V1PodDNSConfig.ts | 2 +- src/gen/models/V1PodDNSConfigOption.ts | 2 +- src/gen/models/V1PodDisruptionBudget.ts | 2 +- src/gen/models/V1PodDisruptionBudgetList.ts | 2 +- src/gen/models/V1PodDisruptionBudgetSpec.ts | 2 +- src/gen/models/V1PodDisruptionBudgetStatus.ts | 2 +- .../V1PodExtendedResourceClaimStatus.ts | 53 + src/gen/models/V1PodFailurePolicy.ts | 2 +- ...1PodFailurePolicyOnExitCodesRequirement.ts | 2 +- ...1PodFailurePolicyOnPodConditionsPattern.ts | 2 +- src/gen/models/V1PodFailurePolicyRule.ts | 2 +- src/gen/models/V1PodIP.ts | 2 +- src/gen/models/V1PodList.ts | 2 +- src/gen/models/V1PodOS.ts | 2 +- src/gen/models/V1PodReadinessGate.ts | 2 +- src/gen/models/V1PodResourceClaim.ts | 2 +- src/gen/models/V1PodResourceClaimStatus.ts | 2 +- src/gen/models/V1PodSchedulingGate.ts | 2 +- src/gen/models/V1PodSecurityContext.ts | 2 +- src/gen/models/V1PodSpec.ts | 14 +- src/gen/models/V1PodStatus.ts | 10 +- src/gen/models/V1PodTemplate.ts | 2 +- src/gen/models/V1PodTemplateList.ts | 2 +- src/gen/models/V1PodTemplateSpec.ts | 2 +- src/gen/models/V1PolicyRule.ts | 2 +- src/gen/models/V1PolicyRulesWithSubjects.ts | 2 +- src/gen/models/V1PortStatus.ts | 2 +- src/gen/models/V1PortworxVolumeSource.ts | 2 +- src/gen/models/V1Preconditions.ts | 2 +- src/gen/models/V1PreferredSchedulingTerm.ts | 2 +- src/gen/models/V1PriorityClass.ts | 2 +- src/gen/models/V1PriorityClassList.ts | 2 +- .../models/V1PriorityLevelConfiguration.ts | 2 +- .../V1PriorityLevelConfigurationCondition.ts | 2 +- .../V1PriorityLevelConfigurationList.ts | 2 +- .../V1PriorityLevelConfigurationReference.ts | 2 +- .../V1PriorityLevelConfigurationSpec.ts | 2 +- .../V1PriorityLevelConfigurationStatus.ts | 2 +- src/gen/models/V1Probe.ts | 2 +- src/gen/models/V1ProjectedVolumeSource.ts | 2 +- src/gen/models/V1QueuingConfiguration.ts | 2 +- src/gen/models/V1QuobyteVolumeSource.ts | 2 +- src/gen/models/V1RBDPersistentVolumeSource.ts | 2 +- src/gen/models/V1RBDVolumeSource.ts | 2 +- src/gen/models/V1ReplicaSet.ts | 2 +- src/gen/models/V1ReplicaSetCondition.ts | 2 +- src/gen/models/V1ReplicaSetList.ts | 2 +- src/gen/models/V1ReplicaSetSpec.ts | 2 +- src/gen/models/V1ReplicaSetStatus.ts | 2 +- src/gen/models/V1ReplicationController.ts | 2 +- .../V1ReplicationControllerCondition.ts | 2 +- src/gen/models/V1ReplicationControllerList.ts | 2 +- src/gen/models/V1ReplicationControllerSpec.ts | 2 +- .../models/V1ReplicationControllerStatus.ts | 2 +- src/gen/models/V1ResourceAttributes.ts | 2 +- .../V1ResourceClaimConsumerReference.ts | 72 + src/gen/models/V1ResourceClaimList.ts | 71 + src/gen/models/V1ResourceClaimSpec.ts | 40 + src/gen/models/V1ResourceClaimStatus.ts | 62 + src/gen/models/V1ResourceClaimTemplate.ts | 68 + src/gen/models/V1ResourceClaimTemplateList.ts | 71 + src/gen/models/V1ResourceClaimTemplateSpec.ts | 48 + src/gen/models/V1ResourceFieldSelector.ts | 2 +- src/gen/models/V1ResourceHealth.ts | 2 +- src/gen/models/V1ResourcePolicyRule.ts | 2 +- src/gen/models/V1ResourcePool.ts | 62 + src/gen/models/V1ResourceQuota.ts | 2 +- src/gen/models/V1ResourceQuotaList.ts | 2 +- src/gen/models/V1ResourceQuotaSpec.ts | 2 +- src/gen/models/V1ResourceQuotaStatus.ts | 2 +- src/gen/models/V1ResourceRequirements.ts | 10 +- src/gen/models/V1ResourceRule.ts | 2 +- src/gen/models/V1ResourceSlice.ts | 68 + src/gen/models/V1ResourceSliceList.ts | 71 + src/gen/models/V1ResourceSliceSpec.ts | 110 + src/gen/models/V1ResourceStatus.ts | 2 +- src/gen/models/V1Role.ts | 2 +- src/gen/models/V1RoleBinding.ts | 2 +- src/gen/models/V1RoleBindingList.ts | 2 +- src/gen/models/V1RoleList.ts | 2 +- src/gen/models/V1RoleRef.ts | 2 +- src/gen/models/V1RollingUpdateDaemonSet.ts | 2 +- src/gen/models/V1RollingUpdateDeployment.ts | 2 +- .../V1RollingUpdateStatefulSetStrategy.ts | 2 +- src/gen/models/V1RuleWithOperations.ts | 2 +- src/gen/models/V1RuntimeClass.ts | 2 +- src/gen/models/V1RuntimeClassList.ts | 2 +- src/gen/models/V1SELinuxOptions.ts | 2 +- src/gen/models/V1Scale.ts | 2 +- .../models/V1ScaleIOPersistentVolumeSource.ts | 2 +- src/gen/models/V1ScaleIOVolumeSource.ts | 2 +- src/gen/models/V1ScaleSpec.ts | 2 +- src/gen/models/V1ScaleStatus.ts | 2 +- src/gen/models/V1Scheduling.ts | 2 +- src/gen/models/V1ScopeSelector.ts | 2 +- .../V1ScopedResourceSelectorRequirement.ts | 2 +- src/gen/models/V1SeccompProfile.ts | 2 +- src/gen/models/V1Secret.ts | 2 +- src/gen/models/V1SecretEnvSource.ts | 2 +- src/gen/models/V1SecretKeySelector.ts | 2 +- src/gen/models/V1SecretList.ts | 2 +- src/gen/models/V1SecretProjection.ts | 2 +- src/gen/models/V1SecretReference.ts | 2 +- src/gen/models/V1SecretVolumeSource.ts | 2 +- src/gen/models/V1SecurityContext.ts | 2 +- src/gen/models/V1SelectableField.ts | 2 +- src/gen/models/V1SelfSubjectAccessReview.ts | 2 +- .../models/V1SelfSubjectAccessReviewSpec.ts | 2 +- src/gen/models/V1SelfSubjectReview.ts | 2 +- src/gen/models/V1SelfSubjectReviewStatus.ts | 2 +- src/gen/models/V1SelfSubjectRulesReview.ts | 2 +- .../models/V1SelfSubjectRulesReviewSpec.ts | 2 +- src/gen/models/V1ServerAddressByClientCIDR.ts | 2 +- src/gen/models/V1Service.ts | 2 +- src/gen/models/V1ServiceAccount.ts | 2 +- src/gen/models/V1ServiceAccountList.ts | 2 +- src/gen/models/V1ServiceAccountSubject.ts | 2 +- .../models/V1ServiceAccountTokenProjection.ts | 2 +- src/gen/models/V1ServiceBackendPort.ts | 2 +- src/gen/models/V1ServiceCIDR.ts | 2 +- src/gen/models/V1ServiceCIDRList.ts | 2 +- src/gen/models/V1ServiceCIDRSpec.ts | 2 +- src/gen/models/V1ServiceCIDRStatus.ts | 2 +- src/gen/models/V1ServiceList.ts | 2 +- src/gen/models/V1ServicePort.ts | 2 +- src/gen/models/V1ServiceSpec.ts | 2 +- src/gen/models/V1ServiceStatus.ts | 2 +- src/gen/models/V1SessionAffinityConfig.ts | 2 +- src/gen/models/V1SleepAction.ts | 2 +- src/gen/models/V1StatefulSet.ts | 2 +- src/gen/models/V1StatefulSetCondition.ts | 2 +- src/gen/models/V1StatefulSetList.ts | 2 +- src/gen/models/V1StatefulSetOrdinals.ts | 2 +- ...SetPersistentVolumeClaimRetentionPolicy.ts | 2 +- src/gen/models/V1StatefulSetSpec.ts | 2 +- src/gen/models/V1StatefulSetStatus.ts | 2 +- src/gen/models/V1StatefulSetUpdateStrategy.ts | 2 +- src/gen/models/V1Status.ts | 2 +- src/gen/models/V1StatusCause.ts | 2 +- src/gen/models/V1StatusDetails.ts | 2 +- src/gen/models/V1StorageClass.ts | 2 +- src/gen/models/V1StorageClassList.ts | 2 +- .../V1StorageOSPersistentVolumeSource.ts | 2 +- src/gen/models/V1StorageOSVolumeSource.ts | 2 +- src/gen/models/V1SubjectAccessReview.ts | 2 +- src/gen/models/V1SubjectAccessReviewSpec.ts | 2 +- src/gen/models/V1SubjectAccessReviewStatus.ts | 2 +- src/gen/models/V1SubjectRulesReviewStatus.ts | 2 +- src/gen/models/V1SuccessPolicy.ts | 4 +- src/gen/models/V1SuccessPolicyRule.ts | 2 +- src/gen/models/V1Sysctl.ts | 2 +- src/gen/models/V1TCPSocketAction.ts | 2 +- src/gen/models/V1Taint.ts | 4 +- src/gen/models/V1TokenRequestSpec.ts | 2 +- src/gen/models/V1TokenRequestStatus.ts | 2 +- src/gen/models/V1TokenReview.ts | 2 +- src/gen/models/V1TokenReviewSpec.ts | 2 +- src/gen/models/V1TokenReviewStatus.ts | 2 +- src/gen/models/V1Toleration.ts | 2 +- .../V1TopologySelectorLabelRequirement.ts | 2 +- src/gen/models/V1TopologySelectorTerm.ts | 2 +- src/gen/models/V1TopologySpreadConstraint.ts | 2 +- src/gen/models/V1TypeChecking.ts | 2 +- src/gen/models/V1TypedLocalObjectReference.ts | 2 +- src/gen/models/V1TypedObjectReference.ts | 2 +- src/gen/models/V1UncountedTerminatedPods.ts | 2 +- src/gen/models/V1UserInfo.ts | 2 +- src/gen/models/V1UserSubject.ts | 2 +- src/gen/models/V1ValidatingAdmissionPolicy.ts | 2 +- .../V1ValidatingAdmissionPolicyBinding.ts | 2 +- .../V1ValidatingAdmissionPolicyBindingList.ts | 2 +- .../V1ValidatingAdmissionPolicyBindingSpec.ts | 2 +- .../models/V1ValidatingAdmissionPolicyList.ts | 2 +- .../models/V1ValidatingAdmissionPolicySpec.ts | 2 +- .../V1ValidatingAdmissionPolicyStatus.ts | 2 +- src/gen/models/V1ValidatingWebhook.ts | 2 +- .../V1ValidatingWebhookConfiguration.ts | 2 +- .../V1ValidatingWebhookConfigurationList.ts | 2 +- src/gen/models/V1Validation.ts | 2 +- src/gen/models/V1ValidationRule.ts | 2 +- src/gen/models/V1Variable.ts | 2 +- src/gen/models/V1Volume.ts | 2 +- src/gen/models/V1VolumeAttachment.ts | 2 +- src/gen/models/V1VolumeAttachmentList.ts | 2 +- src/gen/models/V1VolumeAttachmentSource.ts | 2 +- src/gen/models/V1VolumeAttachmentSpec.ts | 2 +- src/gen/models/V1VolumeAttachmentStatus.ts | 2 +- src/gen/models/V1VolumeAttributesClass.ts | 80 + src/gen/models/V1VolumeAttributesClassList.ts | 71 + src/gen/models/V1VolumeDevice.ts | 2 +- src/gen/models/V1VolumeError.ts | 4 +- src/gen/models/V1VolumeMount.ts | 2 +- src/gen/models/V1VolumeMountStatus.ts | 2 +- src/gen/models/V1VolumeNodeAffinity.ts | 2 +- src/gen/models/V1VolumeNodeResources.ts | 2 +- src/gen/models/V1VolumeProjection.ts | 10 +- .../models/V1VolumeResourceRequirements.ts | 2 +- .../V1VsphereVirtualDiskVolumeSource.ts | 2 +- src/gen/models/V1WatchEvent.ts | 2 +- src/gen/models/V1WebhookConversion.ts | 2 +- src/gen/models/V1WeightedPodAffinityTerm.ts | 2 +- .../models/V1WindowsSecurityContextOptions.ts | 2 +- src/gen/models/V1alpha1ApplyConfiguration.ts | 2 +- src/gen/models/V1alpha1ClusterTrustBundle.ts | 2 +- .../models/V1alpha1ClusterTrustBundleList.ts | 2 +- .../models/V1alpha1ClusterTrustBundleSpec.ts | 2 +- .../models/V1alpha1GroupVersionResource.ts | 2 +- src/gen/models/V1alpha1JSONPatch.ts | 2 +- src/gen/models/V1alpha1MatchCondition.ts | 2 +- src/gen/models/V1alpha1MatchResources.ts | 2 +- src/gen/models/V1alpha1MigrationCondition.ts | 2 +- .../models/V1alpha1MutatingAdmissionPolicy.ts | 2 +- .../V1alpha1MutatingAdmissionPolicyBinding.ts | 2 +- ...lpha1MutatingAdmissionPolicyBindingList.ts | 2 +- ...lpha1MutatingAdmissionPolicyBindingSpec.ts | 2 +- .../V1alpha1MutatingAdmissionPolicyList.ts | 2 +- .../V1alpha1MutatingAdmissionPolicySpec.ts | 2 +- src/gen/models/V1alpha1Mutation.ts | 2 +- .../models/V1alpha1NamedRuleWithOperations.ts | 2 +- src/gen/models/V1alpha1ParamKind.ts | 2 +- src/gen/models/V1alpha1ParamRef.ts | 2 +- .../models/V1alpha1PodCertificateRequest.ts | 76 + .../V1alpha1PodCertificateRequestList.ts | 71 + .../V1alpha1PodCertificateRequestSpec.ts | 132 + .../V1alpha1PodCertificateRequestStatus.ts | 83 + .../models/V1alpha1ServerStorageVersion.ts | 2 +- src/gen/models/V1alpha1StorageVersion.ts | 2 +- .../models/V1alpha1StorageVersionCondition.ts | 2 +- src/gen/models/V1alpha1StorageVersionList.ts | 2 +- .../models/V1alpha1StorageVersionMigration.ts | 2 +- .../V1alpha1StorageVersionMigrationList.ts | 2 +- .../V1alpha1StorageVersionMigrationSpec.ts | 2 +- .../V1alpha1StorageVersionMigrationStatus.ts | 2 +- .../models/V1alpha1StorageVersionStatus.ts | 2 +- src/gen/models/V1alpha1Variable.ts | 2 +- .../models/V1alpha1VolumeAttributesClass.ts | 2 +- .../V1alpha1VolumeAttributesClassList.ts | 2 +- src/gen/models/V1alpha2LeaseCandidate.ts | 2 +- src/gen/models/V1alpha2LeaseCandidateList.ts | 2 +- src/gen/models/V1alpha2LeaseCandidateSpec.ts | 2 +- src/gen/models/V1alpha3CELDeviceSelector.ts | 2 +- src/gen/models/V1alpha3DeviceSelector.ts | 2 +- src/gen/models/V1alpha3DeviceTaint.ts | 2 +- src/gen/models/V1alpha3DeviceTaintRule.ts | 2 +- src/gen/models/V1alpha3DeviceTaintRuleList.ts | 2 +- src/gen/models/V1alpha3DeviceTaintRuleSpec.ts | 2 +- src/gen/models/V1alpha3DeviceTaintSelector.ts | 2 +- .../models/V1beta1AllocatedDeviceStatus.ts | 14 +- src/gen/models/V1beta1AllocationResult.ts | 12 +- src/gen/models/V1beta1ApplyConfiguration.ts | 42 + src/gen/models/V1beta1BasicDevice.ts | 42 +- src/gen/models/V1beta1CELDeviceSelector.ts | 4 +- .../models/V1beta1CapacityRequestPolicy.ts | 60 + .../V1beta1CapacityRequestPolicyRange.ts | 62 + src/gen/models/V1beta1CapacityRequirements.ts | 42 + src/gen/models/V1beta1ClusterTrustBundle.ts | 2 +- .../models/V1beta1ClusterTrustBundleList.ts | 2 +- .../models/V1beta1ClusterTrustBundleSpec.ts | 2 +- src/gen/models/V1beta1Counter.ts | 2 +- src/gen/models/V1beta1CounterSet.ts | 2 +- src/gen/models/V1beta1Device.ts | 2 +- .../V1beta1DeviceAllocationConfiguration.ts | 2 +- .../models/V1beta1DeviceAllocationResult.ts | 2 +- src/gen/models/V1beta1DeviceAttribute.ts | 2 +- src/gen/models/V1beta1DeviceCapacity.ts | 12 +- src/gen/models/V1beta1DeviceClaim.ts | 2 +- .../models/V1beta1DeviceClaimConfiguration.ts | 2 +- src/gen/models/V1beta1DeviceClass.ts | 2 +- .../models/V1beta1DeviceClassConfiguration.ts | 2 +- src/gen/models/V1beta1DeviceClassList.ts | 2 +- src/gen/models/V1beta1DeviceClassSpec.ts | 12 +- src/gen/models/V1beta1DeviceConstraint.ts | 12 +- .../models/V1beta1DeviceCounterConsumption.ts | 2 +- src/gen/models/V1beta1DeviceRequest.ts | 10 +- .../V1beta1DeviceRequestAllocationResult.ts | 42 +- src/gen/models/V1beta1DeviceSelector.ts | 2 +- src/gen/models/V1beta1DeviceSubRequest.ts | 10 +- src/gen/models/V1beta1DeviceTaint.ts | 2 +- src/gen/models/V1beta1DeviceToleration.ts | 2 +- src/gen/models/V1beta1IPAddress.ts | 2 +- src/gen/models/V1beta1IPAddressList.ts | 2 +- src/gen/models/V1beta1IPAddressSpec.ts | 2 +- src/gen/models/V1beta1JSONPatch.ts | 42 + src/gen/models/V1beta1LeaseCandidate.ts | 2 +- src/gen/models/V1beta1LeaseCandidateList.ts | 2 +- src/gen/models/V1beta1LeaseCandidateSpec.ts | 2 +- src/gen/models/V1beta1MatchCondition.ts | 2 +- src/gen/models/V1beta1MatchResources.ts | 2 +- .../models/V1beta1MutatingAdmissionPolicy.ts | 68 + .../V1beta1MutatingAdmissionPolicyBinding.ts | 68 + ...beta1MutatingAdmissionPolicyBindingList.ts | 71 + ...beta1MutatingAdmissionPolicyBindingSpec.ts | 58 + .../V1beta1MutatingAdmissionPolicyList.ts | 71 + .../V1beta1MutatingAdmissionPolicySpec.ts | 101 + src/gen/models/V1beta1Mutation.ts | 58 + .../models/V1beta1NamedRuleWithOperations.ts | 2 +- src/gen/models/V1beta1NetworkDeviceData.ts | 2 +- .../V1beta1OpaqueDeviceConfiguration.ts | 2 +- src/gen/models/V1beta1ParamKind.ts | 2 +- src/gen/models/V1beta1ParamRef.ts | 2 +- src/gen/models/V1beta1ParentReference.ts | 2 +- src/gen/models/V1beta1ResourceClaim.ts | 2 +- .../V1beta1ResourceClaimConsumerReference.ts | 2 +- src/gen/models/V1beta1ResourceClaimList.ts | 2 +- src/gen/models/V1beta1ResourceClaimSpec.ts | 2 +- src/gen/models/V1beta1ResourceClaimStatus.ts | 2 +- .../models/V1beta1ResourceClaimTemplate.ts | 2 +- .../V1beta1ResourceClaimTemplateList.ts | 2 +- .../V1beta1ResourceClaimTemplateSpec.ts | 2 +- src/gen/models/V1beta1ResourcePool.ts | 2 +- src/gen/models/V1beta1ResourceSlice.ts | 2 +- src/gen/models/V1beta1ResourceSliceList.ts | 2 +- src/gen/models/V1beta1ResourceSliceSpec.ts | 2 +- src/gen/models/V1beta1ServiceCIDR.ts | 2 +- src/gen/models/V1beta1ServiceCIDRList.ts | 2 +- src/gen/models/V1beta1ServiceCIDRSpec.ts | 2 +- src/gen/models/V1beta1ServiceCIDRStatus.ts | 2 +- src/gen/models/V1beta1Variable.ts | 2 +- .../models/V1beta1VolumeAttributesClass.ts | 2 +- .../V1beta1VolumeAttributesClassList.ts | 2 +- .../models/V1beta2AllocatedDeviceStatus.ts | 14 +- src/gen/models/V1beta2AllocationResult.ts | 12 +- src/gen/models/V1beta2CELDeviceSelector.ts | 4 +- .../models/V1beta2CapacityRequestPolicy.ts | 60 + .../V1beta2CapacityRequestPolicyRange.ts | 62 + src/gen/models/V1beta2CapacityRequirements.ts | 42 + src/gen/models/V1beta2Counter.ts | 2 +- src/gen/models/V1beta2CounterSet.ts | 2 +- src/gen/models/V1beta2Device.ts | 42 +- .../V1beta2DeviceAllocationConfiguration.ts | 2 +- .../models/V1beta2DeviceAllocationResult.ts | 2 +- src/gen/models/V1beta2DeviceAttribute.ts | 2 +- src/gen/models/V1beta2DeviceCapacity.ts | 12 +- src/gen/models/V1beta2DeviceClaim.ts | 2 +- .../models/V1beta2DeviceClaimConfiguration.ts | 2 +- src/gen/models/V1beta2DeviceClass.ts | 2 +- .../models/V1beta2DeviceClassConfiguration.ts | 2 +- src/gen/models/V1beta2DeviceClassList.ts | 2 +- src/gen/models/V1beta2DeviceClassSpec.ts | 12 +- src/gen/models/V1beta2DeviceConstraint.ts | 12 +- .../models/V1beta2DeviceCounterConsumption.ts | 2 +- src/gen/models/V1beta2DeviceRequest.ts | 2 +- .../V1beta2DeviceRequestAllocationResult.ts | 42 +- src/gen/models/V1beta2DeviceSelector.ts | 2 +- src/gen/models/V1beta2DeviceSubRequest.ts | 10 +- src/gen/models/V1beta2DeviceTaint.ts | 2 +- src/gen/models/V1beta2DeviceToleration.ts | 2 +- src/gen/models/V1beta2ExactDeviceRequest.ts | 10 +- src/gen/models/V1beta2NetworkDeviceData.ts | 2 +- .../V1beta2OpaqueDeviceConfiguration.ts | 2 +- src/gen/models/V1beta2ResourceClaim.ts | 2 +- .../V1beta2ResourceClaimConsumerReference.ts | 2 +- src/gen/models/V1beta2ResourceClaimList.ts | 2 +- src/gen/models/V1beta2ResourceClaimSpec.ts | 2 +- src/gen/models/V1beta2ResourceClaimStatus.ts | 2 +- .../models/V1beta2ResourceClaimTemplate.ts | 2 +- .../V1beta2ResourceClaimTemplateList.ts | 2 +- .../V1beta2ResourceClaimTemplateSpec.ts | 2 +- src/gen/models/V1beta2ResourcePool.ts | 2 +- src/gen/models/V1beta2ResourceSlice.ts | 2 +- src/gen/models/V1beta2ResourceSliceList.ts | 2 +- src/gen/models/V1beta2ResourceSliceSpec.ts | 2 +- .../models/V2ContainerResourceMetricSource.ts | 2 +- .../models/V2ContainerResourceMetricStatus.ts | 2 +- .../models/V2CrossVersionObjectReference.ts | 2 +- src/gen/models/V2ExternalMetricSource.ts | 2 +- src/gen/models/V2ExternalMetricStatus.ts | 2 +- src/gen/models/V2HPAScalingPolicy.ts | 2 +- src/gen/models/V2HPAScalingRules.ts | 2 +- src/gen/models/V2HorizontalPodAutoscaler.ts | 2 +- .../V2HorizontalPodAutoscalerBehavior.ts | 2 +- .../V2HorizontalPodAutoscalerCondition.ts | 2 +- .../models/V2HorizontalPodAutoscalerList.ts | 2 +- .../models/V2HorizontalPodAutoscalerSpec.ts | 2 +- .../models/V2HorizontalPodAutoscalerStatus.ts | 2 +- src/gen/models/V2MetricIdentifier.ts | 2 +- src/gen/models/V2MetricSpec.ts | 2 +- src/gen/models/V2MetricStatus.ts | 2 +- src/gen/models/V2MetricTarget.ts | 2 +- src/gen/models/V2MetricValueStatus.ts | 2 +- src/gen/models/V2ObjectMetricSource.ts | 2 +- src/gen/models/V2ObjectMetricStatus.ts | 2 +- src/gen/models/V2PodsMetricSource.ts | 2 +- src/gen/models/V2PodsMetricStatus.ts | 2 +- src/gen/models/V2ResourceMetricSource.ts | 2 +- src/gen/models/V2ResourceMetricStatus.ts | 2 +- src/gen/models/VersionInfo.ts | 2 +- src/gen/models/all.ts | 117 +- src/gen/swagger.json | 13825 +++++++++------- src/gen/swagger.json.unprocessed | 12418 ++++++++------ src/gen/types/ObjectParamAPI.ts | 9318 ++++++----- src/gen/types/ObservableAPI.ts | 2671 +-- src/gen/types/PromiseAPI.ts | 1864 ++- 743 files changed, 45785 insertions(+), 27380 deletions(-) create mode 100644 src/gen/ResourceV1Api.md create mode 100644 src/gen/apis/ResourceV1Api.ts create mode 100644 src/gen/models/CoreV1ResourceClaim.ts create mode 100644 src/gen/models/ResourceV1ResourceClaim.ts create mode 100644 src/gen/models/V1AllocatedDeviceStatus.ts create mode 100644 src/gen/models/V1AllocationResult.ts create mode 100644 src/gen/models/V1CELDeviceSelector.ts create mode 100644 src/gen/models/V1CapacityRequestPolicy.ts create mode 100644 src/gen/models/V1CapacityRequestPolicyRange.ts create mode 100644 src/gen/models/V1CapacityRequirements.ts create mode 100644 src/gen/models/V1ContainerExtendedResourceRequest.ts create mode 100644 src/gen/models/V1ContainerRestartRule.ts create mode 100644 src/gen/models/V1ContainerRestartRuleOnExitCodes.ts create mode 100644 src/gen/models/V1Counter.ts create mode 100644 src/gen/models/V1CounterSet.ts create mode 100644 src/gen/models/V1Device.ts create mode 100644 src/gen/models/V1DeviceAllocationConfiguration.ts create mode 100644 src/gen/models/V1DeviceAllocationResult.ts create mode 100644 src/gen/models/V1DeviceAttribute.ts create mode 100644 src/gen/models/V1DeviceCapacity.ts create mode 100644 src/gen/models/V1DeviceClaim.ts create mode 100644 src/gen/models/V1DeviceClaimConfiguration.ts create mode 100644 src/gen/models/V1DeviceClass.ts create mode 100644 src/gen/models/V1DeviceClassConfiguration.ts create mode 100644 src/gen/models/V1DeviceClassList.ts create mode 100644 src/gen/models/V1DeviceClassSpec.ts create mode 100644 src/gen/models/V1DeviceConstraint.ts create mode 100644 src/gen/models/V1DeviceCounterConsumption.ts create mode 100644 src/gen/models/V1DeviceRequest.ts create mode 100644 src/gen/models/V1DeviceRequestAllocationResult.ts create mode 100644 src/gen/models/V1DeviceSelector.ts create mode 100644 src/gen/models/V1DeviceSubRequest.ts create mode 100644 src/gen/models/V1DeviceTaint.ts create mode 100644 src/gen/models/V1DeviceToleration.ts create mode 100644 src/gen/models/V1ExactDeviceRequest.ts create mode 100644 src/gen/models/V1FileKeySelector.ts create mode 100644 src/gen/models/V1NetworkDeviceData.ts create mode 100644 src/gen/models/V1OpaqueDeviceConfiguration.ts create mode 100644 src/gen/models/V1PodCertificateProjection.ts create mode 100644 src/gen/models/V1PodExtendedResourceClaimStatus.ts create mode 100644 src/gen/models/V1ResourceClaimConsumerReference.ts create mode 100644 src/gen/models/V1ResourceClaimList.ts create mode 100644 src/gen/models/V1ResourceClaimSpec.ts create mode 100644 src/gen/models/V1ResourceClaimStatus.ts create mode 100644 src/gen/models/V1ResourceClaimTemplate.ts create mode 100644 src/gen/models/V1ResourceClaimTemplateList.ts create mode 100644 src/gen/models/V1ResourceClaimTemplateSpec.ts create mode 100644 src/gen/models/V1ResourcePool.ts create mode 100644 src/gen/models/V1ResourceSlice.ts create mode 100644 src/gen/models/V1ResourceSliceList.ts create mode 100644 src/gen/models/V1ResourceSliceSpec.ts create mode 100644 src/gen/models/V1VolumeAttributesClass.ts create mode 100644 src/gen/models/V1VolumeAttributesClassList.ts create mode 100644 src/gen/models/V1alpha1PodCertificateRequest.ts create mode 100644 src/gen/models/V1alpha1PodCertificateRequestList.ts create mode 100644 src/gen/models/V1alpha1PodCertificateRequestSpec.ts create mode 100644 src/gen/models/V1alpha1PodCertificateRequestStatus.ts create mode 100644 src/gen/models/V1beta1ApplyConfiguration.ts create mode 100644 src/gen/models/V1beta1CapacityRequestPolicy.ts create mode 100644 src/gen/models/V1beta1CapacityRequestPolicyRange.ts create mode 100644 src/gen/models/V1beta1CapacityRequirements.ts create mode 100644 src/gen/models/V1beta1JSONPatch.ts create mode 100644 src/gen/models/V1beta1MutatingAdmissionPolicy.ts create mode 100644 src/gen/models/V1beta1MutatingAdmissionPolicyBinding.ts create mode 100644 src/gen/models/V1beta1MutatingAdmissionPolicyBindingList.ts create mode 100644 src/gen/models/V1beta1MutatingAdmissionPolicyBindingSpec.ts create mode 100644 src/gen/models/V1beta1MutatingAdmissionPolicyList.ts create mode 100644 src/gen/models/V1beta1MutatingAdmissionPolicySpec.ts create mode 100644 src/gen/models/V1beta1Mutation.ts create mode 100644 src/gen/models/V1beta2CapacityRequestPolicy.ts create mode 100644 src/gen/models/V1beta2CapacityRequestPolicyRange.ts create mode 100644 src/gen/models/V1beta2CapacityRequirements.ts diff --git a/settings b/settings index 06c43a14ef..df06b3f371 100644 --- a/settings +++ b/settings @@ -21,7 +21,7 @@ export GEN_COMMIT=b461333bb57fa2dc2152f939ed70bac3cef2c1f6 export USERNAME=kubernetes # Kubernetes branch/tag to get the OpenAPI spec from. -export KUBERNETES_BRANCH="v1.33.0" +export KUBERNETES_BRANCH="v1.34.0" # client version for packaging and releasing. It can # be different than SPEC_VERSION. diff --git a/src/gen/.openapi-generator/FILES b/src/gen/.openapi-generator/FILES index 4bed80a8d4..46e2987185 100644 --- a/src/gen/.openapi-generator/FILES +++ b/src/gen/.openapi-generator/FILES @@ -52,6 +52,7 @@ README.md RbacAuthorizationApi.md RbacAuthorizationV1Api.md ResourceApi.md +ResourceV1Api.md ResourceV1alpha3Api.md ResourceV1beta1Api.md ResourceV1beta2Api.md @@ -116,6 +117,7 @@ apis/PolicyV1Api.ts apis/RbacAuthorizationApi.ts apis/RbacAuthorizationV1Api.ts apis/ResourceApi.ts +apis/ResourceV1Api.ts apis/ResourceV1alpha3Api.ts apis/ResourceV1beta1Api.ts apis/ResourceV1beta2Api.ts @@ -148,6 +150,7 @@ models/CoreV1EndpointPort.ts models/CoreV1Event.ts models/CoreV1EventList.ts models/CoreV1EventSeries.ts +models/CoreV1ResourceClaim.ts models/DiscoveryV1EndpointPort.ts models/EventsV1Event.ts models/EventsV1EventList.ts @@ -155,6 +158,7 @@ models/EventsV1EventSeries.ts models/FlowcontrolV1Subject.ts models/ObjectSerializer.ts models/RbacV1Subject.ts +models/ResourceV1ResourceClaim.ts models/StorageV1TokenRequest.ts models/V1APIGroup.ts models/V1APIGroupList.ts @@ -169,6 +173,8 @@ models/V1APIVersions.ts models/V1AWSElasticBlockStoreVolumeSource.ts models/V1Affinity.ts models/V1AggregationRule.ts +models/V1AllocatedDeviceStatus.ts +models/V1AllocationResult.ts models/V1AppArmorProfile.ts models/V1AttachedVolume.ts models/V1AuditAnnotation.ts @@ -177,6 +183,7 @@ models/V1AzureFilePersistentVolumeSource.ts models/V1AzureFileVolumeSource.ts models/V1Binding.ts models/V1BoundObjectReference.ts +models/V1CELDeviceSelector.ts models/V1CSIDriver.ts models/V1CSIDriverList.ts models/V1CSIDriverSpec.ts @@ -189,6 +196,9 @@ models/V1CSIStorageCapacity.ts models/V1CSIStorageCapacityList.ts models/V1CSIVolumeSource.ts models/V1Capabilities.ts +models/V1CapacityRequestPolicy.ts +models/V1CapacityRequestPolicyRange.ts +models/V1CapacityRequirements.ts models/V1CephFSPersistentVolumeSource.ts models/V1CephFSVolumeSource.ts models/V1CertificateSigningRequest.ts @@ -216,9 +226,12 @@ models/V1ConfigMapNodeConfigSource.ts models/V1ConfigMapProjection.ts models/V1ConfigMapVolumeSource.ts models/V1Container.ts +models/V1ContainerExtendedResourceRequest.ts models/V1ContainerImage.ts models/V1ContainerPort.ts models/V1ContainerResizePolicy.ts +models/V1ContainerRestartRule.ts +models/V1ContainerRestartRuleOnExitCodes.ts models/V1ContainerState.ts models/V1ContainerStateRunning.ts models/V1ContainerStateTerminated.ts @@ -227,6 +240,8 @@ models/V1ContainerStatus.ts models/V1ContainerUser.ts models/V1ControllerRevision.ts models/V1ControllerRevisionList.ts +models/V1Counter.ts +models/V1CounterSet.ts models/V1CronJob.ts models/V1CronJobList.ts models/V1CronJobSpec.ts @@ -258,6 +273,25 @@ models/V1DeploymentList.ts models/V1DeploymentSpec.ts models/V1DeploymentStatus.ts models/V1DeploymentStrategy.ts +models/V1Device.ts +models/V1DeviceAllocationConfiguration.ts +models/V1DeviceAllocationResult.ts +models/V1DeviceAttribute.ts +models/V1DeviceCapacity.ts +models/V1DeviceClaim.ts +models/V1DeviceClaimConfiguration.ts +models/V1DeviceClass.ts +models/V1DeviceClassConfiguration.ts +models/V1DeviceClassList.ts +models/V1DeviceClassSpec.ts +models/V1DeviceConstraint.ts +models/V1DeviceCounterConsumption.ts +models/V1DeviceRequest.ts +models/V1DeviceRequestAllocationResult.ts +models/V1DeviceSelector.ts +models/V1DeviceSubRequest.ts +models/V1DeviceTaint.ts +models/V1DeviceToleration.ts models/V1DownwardAPIProjection.ts models/V1DownwardAPIVolumeFile.ts models/V1DownwardAPIVolumeSource.ts @@ -278,6 +312,7 @@ models/V1EphemeralContainer.ts models/V1EphemeralVolumeSource.ts models/V1EventSource.ts models/V1Eviction.ts +models/V1ExactDeviceRequest.ts models/V1ExecAction.ts models/V1ExemptPriorityLevelConfiguration.ts models/V1ExpressionWarning.ts @@ -285,6 +320,7 @@ models/V1ExternalDocumentation.ts models/V1FCVolumeSource.ts models/V1FieldSelectorAttributes.ts models/V1FieldSelectorRequirement.ts +models/V1FileKeySelector.ts models/V1FlexPersistentVolumeSource.ts models/V1FlexVolumeSource.ts models/V1FlockerVolumeSource.ts @@ -379,6 +415,7 @@ models/V1NamespaceCondition.ts models/V1NamespaceList.ts models/V1NamespaceSpec.ts models/V1NamespaceStatus.ts +models/V1NetworkDeviceData.ts models/V1NetworkPolicy.ts models/V1NetworkPolicyEgressRule.ts models/V1NetworkPolicyIngressRule.ts @@ -410,6 +447,7 @@ models/V1NonResourceRule.ts models/V1ObjectFieldSelector.ts models/V1ObjectMeta.ts models/V1ObjectReference.ts +models/V1OpaqueDeviceConfiguration.ts models/V1Overhead.ts models/V1OwnerReference.ts models/V1ParamKind.ts @@ -431,6 +469,7 @@ models/V1Pod.ts models/V1PodAffinity.ts models/V1PodAffinityTerm.ts models/V1PodAntiAffinity.ts +models/V1PodCertificateProjection.ts models/V1PodCondition.ts models/V1PodDNSConfig.ts models/V1PodDNSConfigOption.ts @@ -438,6 +477,7 @@ models/V1PodDisruptionBudget.ts models/V1PodDisruptionBudgetList.ts models/V1PodDisruptionBudgetSpec.ts models/V1PodDisruptionBudgetStatus.ts +models/V1PodExtendedResourceClaimStatus.ts models/V1PodFailurePolicy.ts models/V1PodFailurePolicyOnExitCodesRequirement.ts models/V1PodFailurePolicyOnPodConditionsPattern.ts @@ -486,16 +526,26 @@ models/V1ReplicationControllerList.ts models/V1ReplicationControllerSpec.ts models/V1ReplicationControllerStatus.ts models/V1ResourceAttributes.ts -models/V1ResourceClaim.ts +models/V1ResourceClaimConsumerReference.ts +models/V1ResourceClaimList.ts +models/V1ResourceClaimSpec.ts +models/V1ResourceClaimStatus.ts +models/V1ResourceClaimTemplate.ts +models/V1ResourceClaimTemplateList.ts +models/V1ResourceClaimTemplateSpec.ts models/V1ResourceFieldSelector.ts models/V1ResourceHealth.ts models/V1ResourcePolicyRule.ts +models/V1ResourcePool.ts models/V1ResourceQuota.ts models/V1ResourceQuotaList.ts models/V1ResourceQuotaSpec.ts models/V1ResourceQuotaStatus.ts models/V1ResourceRequirements.ts models/V1ResourceRule.ts +models/V1ResourceSlice.ts +models/V1ResourceSliceList.ts +models/V1ResourceSliceSpec.ts models/V1ResourceStatus.ts models/V1Role.ts models/V1RoleBinding.ts @@ -608,6 +658,8 @@ models/V1VolumeAttachmentList.ts models/V1VolumeAttachmentSource.ts models/V1VolumeAttachmentSpec.ts models/V1VolumeAttachmentStatus.ts +models/V1VolumeAttributesClass.ts +models/V1VolumeAttributesClassList.ts models/V1VolumeDevice.ts models/V1VolumeError.ts models/V1VolumeMount.ts @@ -640,6 +692,10 @@ models/V1alpha1Mutation.ts models/V1alpha1NamedRuleWithOperations.ts models/V1alpha1ParamKind.ts models/V1alpha1ParamRef.ts +models/V1alpha1PodCertificateRequest.ts +models/V1alpha1PodCertificateRequestList.ts +models/V1alpha1PodCertificateRequestSpec.ts +models/V1alpha1PodCertificateRequestStatus.ts models/V1alpha1ServerStorageVersion.ts models/V1alpha1StorageVersion.ts models/V1alpha1StorageVersionCondition.ts @@ -655,53 +711,21 @@ models/V1alpha1VolumeAttributesClassList.ts models/V1alpha2LeaseCandidate.ts models/V1alpha2LeaseCandidateList.ts models/V1alpha2LeaseCandidateSpec.ts -models/V1alpha3AllocatedDeviceStatus.ts -models/V1alpha3AllocationResult.ts -models/V1alpha3BasicDevice.ts models/V1alpha3CELDeviceSelector.ts -models/V1alpha3Counter.ts -models/V1alpha3CounterSet.ts -models/V1alpha3Device.ts -models/V1alpha3DeviceAllocationConfiguration.ts -models/V1alpha3DeviceAllocationResult.ts -models/V1alpha3DeviceAttribute.ts -models/V1alpha3DeviceClaim.ts -models/V1alpha3DeviceClaimConfiguration.ts -models/V1alpha3DeviceClass.ts -models/V1alpha3DeviceClassConfiguration.ts -models/V1alpha3DeviceClassList.ts -models/V1alpha3DeviceClassSpec.ts -models/V1alpha3DeviceConstraint.ts -models/V1alpha3DeviceCounterConsumption.ts -models/V1alpha3DeviceRequest.ts -models/V1alpha3DeviceRequestAllocationResult.ts models/V1alpha3DeviceSelector.ts -models/V1alpha3DeviceSubRequest.ts models/V1alpha3DeviceTaint.ts models/V1alpha3DeviceTaintRule.ts models/V1alpha3DeviceTaintRuleList.ts models/V1alpha3DeviceTaintRuleSpec.ts models/V1alpha3DeviceTaintSelector.ts -models/V1alpha3DeviceToleration.ts -models/V1alpha3NetworkDeviceData.ts -models/V1alpha3OpaqueDeviceConfiguration.ts -models/V1alpha3ResourceClaim.ts -models/V1alpha3ResourceClaimConsumerReference.ts -models/V1alpha3ResourceClaimList.ts -models/V1alpha3ResourceClaimSpec.ts -models/V1alpha3ResourceClaimStatus.ts -models/V1alpha3ResourceClaimTemplate.ts -models/V1alpha3ResourceClaimTemplateList.ts -models/V1alpha3ResourceClaimTemplateSpec.ts -models/V1alpha3ResourcePool.ts -models/V1alpha3ResourceSlice.ts -models/V1alpha3ResourceSliceList.ts -models/V1alpha3ResourceSliceSpec.ts models/V1beta1AllocatedDeviceStatus.ts models/V1beta1AllocationResult.ts -models/V1beta1AuditAnnotation.ts +models/V1beta1ApplyConfiguration.ts models/V1beta1BasicDevice.ts models/V1beta1CELDeviceSelector.ts +models/V1beta1CapacityRequestPolicy.ts +models/V1beta1CapacityRequestPolicyRange.ts +models/V1beta1CapacityRequirements.ts models/V1beta1ClusterTrustBundle.ts models/V1beta1ClusterTrustBundleList.ts models/V1beta1ClusterTrustBundleSpec.ts @@ -726,15 +750,22 @@ models/V1beta1DeviceSelector.ts models/V1beta1DeviceSubRequest.ts models/V1beta1DeviceTaint.ts models/V1beta1DeviceToleration.ts -models/V1beta1ExpressionWarning.ts models/V1beta1IPAddress.ts models/V1beta1IPAddressList.ts models/V1beta1IPAddressSpec.ts +models/V1beta1JSONPatch.ts models/V1beta1LeaseCandidate.ts models/V1beta1LeaseCandidateList.ts models/V1beta1LeaseCandidateSpec.ts models/V1beta1MatchCondition.ts models/V1beta1MatchResources.ts +models/V1beta1MutatingAdmissionPolicy.ts +models/V1beta1MutatingAdmissionPolicyBinding.ts +models/V1beta1MutatingAdmissionPolicyBindingList.ts +models/V1beta1MutatingAdmissionPolicyBindingSpec.ts +models/V1beta1MutatingAdmissionPolicyList.ts +models/V1beta1MutatingAdmissionPolicySpec.ts +models/V1beta1Mutation.ts models/V1beta1NamedRuleWithOperations.ts models/V1beta1NetworkDeviceData.ts models/V1beta1OpaqueDeviceConfiguration.ts @@ -757,21 +788,15 @@ models/V1beta1ServiceCIDR.ts models/V1beta1ServiceCIDRList.ts models/V1beta1ServiceCIDRSpec.ts models/V1beta1ServiceCIDRStatus.ts -models/V1beta1TypeChecking.ts -models/V1beta1ValidatingAdmissionPolicy.ts -models/V1beta1ValidatingAdmissionPolicyBinding.ts -models/V1beta1ValidatingAdmissionPolicyBindingList.ts -models/V1beta1ValidatingAdmissionPolicyBindingSpec.ts -models/V1beta1ValidatingAdmissionPolicyList.ts -models/V1beta1ValidatingAdmissionPolicySpec.ts -models/V1beta1ValidatingAdmissionPolicyStatus.ts -models/V1beta1Validation.ts models/V1beta1Variable.ts models/V1beta1VolumeAttributesClass.ts models/V1beta1VolumeAttributesClassList.ts models/V1beta2AllocatedDeviceStatus.ts models/V1beta2AllocationResult.ts models/V1beta2CELDeviceSelector.ts +models/V1beta2CapacityRequestPolicy.ts +models/V1beta2CapacityRequestPolicyRange.ts +models/V1beta2CapacityRequirements.ts models/V1beta2Counter.ts models/V1beta2CounterSet.ts models/V1beta2Device.ts diff --git a/src/gen/.openapi-generator/swagger.json-default.sha256 b/src/gen/.openapi-generator/swagger.json-default.sha256 index b2a5a48a0d..578185bae9 100644 --- a/src/gen/.openapi-generator/swagger.json-default.sha256 +++ b/src/gen/.openapi-generator/swagger.json-default.sha256 @@ -1 +1 @@ -0db1cb9dd22c621126b5cd142f30d5a0c767198676b60f274f5e98b7849ce7fb \ No newline at end of file +3efca78d56ffd7ba8786561b0a496d57aff5485bd5c170d11cde9858bb53d53f \ No newline at end of file diff --git a/src/gen/AdmissionregistrationV1beta1Api.md b/src/gen/AdmissionregistrationV1beta1Api.md index 4e47737e28..41b35289ea 100644 --- a/src/gen/AdmissionregistrationV1beta1Api.md +++ b/src/gen/AdmissionregistrationV1beta1Api.md @@ -4,42 +4,39 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | -[**createValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | -[**deleteCollectionValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | -[**deleteCollectionValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | -[**deleteValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -[**deleteValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | +[**createMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#createMutatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | +[**createMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#createMutatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | +[**deleteCollectionMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteCollectionMutatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | +[**deleteCollectionMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteCollectionMutatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | +[**deleteMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteMutatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +[**deleteMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteMutatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | [**getAPIResources**](AdmissionregistrationV1beta1Api.md#getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1beta1/ | -[**listValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | -[**listValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | -[**patchValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -[**patchValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | -[**patchValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicyStatus) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | -[**readValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -[**readValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | -[**readValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicyStatus) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | -[**replaceValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -[**replaceValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | -[**replaceValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicyStatus) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | +[**listMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#listMutatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | +[**listMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#listMutatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | +[**patchMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#patchMutatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +[**patchMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#patchMutatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | +[**readMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#readMutatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +[**readMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#readMutatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | +[**replaceMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#replaceMutatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +[**replaceMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#replaceMutatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | -# **createValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy createValidatingAdmissionPolicy(body) +# **createMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy createMutatingAdmissionPolicy(body) -create a ValidatingAdmissionPolicy +create a MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyRequest = { +const request: AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyRequest = { body: { apiVersion: "apiVersion_example", @@ -87,12 +84,6 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyReq uid: "uid_example", }, spec: { - auditAnnotations: [ - { - key: "key_example", - valueExpression: "valueExpression_example", - }, - ], failurePolicy: "failurePolicy_example", matchConditions: [ { @@ -171,18 +162,22 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyReq }, ], }, + mutations: [ + { + applyConfiguration: { + expression: "expression_example", + }, + jsonPatch: { + expression: "expression_example", + }, + patchType: "patchType_example", + }, + ], paramKind: { apiVersion: "apiVersion_example", kind: "kind_example", }, - validations: [ - { - expression: "expression_example", - message: "message_example", - messageExpression: "messageExpression_example", - reason: "reason_example", - }, - ], + reinvocationPolicy: "reinvocationPolicy_example", variables: [ { expression: "expression_example", @@ -190,27 +185,6 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyReq }, ], }, - status: { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - observedGeneration: 1, - typeChecking: { - expressionWarnings: [ - { - fieldRef: "fieldRef_example", - warning: "warning_example", - }, - ], - }, - }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", @@ -222,7 +196,7 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyReq fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.createValidatingAdmissionPolicy(request); +const data = await apiInstance.createMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -231,7 +205,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicy**| | + **body** | **V1beta1MutatingAdmissionPolicy**| | **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -240,7 +214,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicy** ### Authorization @@ -262,22 +236,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **createValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBinding(body) +# **createMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding createMutatingAdmissionPolicyBinding(body) -create a ValidatingAdmissionPolicyBinding +create a MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBindingRequest = { +const request: AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyBindingRequest = { body: { apiVersion: "apiVersion_example", @@ -416,9 +390,6 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBin }, }, policyName: "policyName_example", - validationActions: [ - "validationActions_example", - ], }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -431,7 +402,7 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBin fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.createValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.createMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -440,7 +411,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicyBinding**| | + **body** | **V1beta1MutatingAdmissionPolicyBinding**| | **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -449,7 +420,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicyBinding** +**V1beta1MutatingAdmissionPolicyBinding** ### Authorization @@ -471,22 +442,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionValidatingAdmissionPolicy** -> V1Status deleteCollectionValidatingAdmissionPolicy() +# **deleteCollectionMutatingAdmissionPolicy** +> V1Status deleteCollectionMutatingAdmissionPolicy() -delete collection of ValidatingAdmissionPolicy +delete collection of MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyRequest = { +const request: AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -533,7 +504,7 @@ const request: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissio }, }; -const data = await apiInstance.deleteCollectionValidatingAdmissionPolicy(request); +const data = await apiInstance.deleteCollectionMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -581,22 +552,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionValidatingAdmissionPolicyBinding** -> V1Status deleteCollectionValidatingAdmissionPolicyBinding() +# **deleteCollectionMutatingAdmissionPolicyBinding** +> V1Status deleteCollectionMutatingAdmissionPolicyBinding() -delete collection of ValidatingAdmissionPolicyBinding +delete collection of MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest = { +const request: AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -643,7 +614,7 @@ const request: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissio }, }; -const data = await apiInstance.deleteCollectionValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.deleteCollectionMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -691,23 +662,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteValidatingAdmissionPolicy** -> V1Status deleteValidatingAdmissionPolicy() +# **deleteMutatingAdmissionPolicy** +> V1Status deleteMutatingAdmissionPolicy() -delete a ValidatingAdmissionPolicy +delete a MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyRequest = { - // name of the ValidatingAdmissionPolicy +const request: AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyRequest = { + // name of the MutatingAdmissionPolicy name: "name_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", @@ -739,7 +710,7 @@ const request: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyReq }, }; -const data = await apiInstance.deleteValidatingAdmissionPolicy(request); +const data = await apiInstance.deleteMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -749,7 +720,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicy | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined @@ -781,23 +752,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteValidatingAdmissionPolicyBinding** -> V1Status deleteValidatingAdmissionPolicyBinding() +# **deleteMutatingAdmissionPolicyBinding** +> V1Status deleteMutatingAdmissionPolicyBinding() -delete a ValidatingAdmissionPolicyBinding +delete a MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBindingRequest = { - // name of the ValidatingAdmissionPolicyBinding +const request: AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyBindingRequest = { + // name of the MutatingAdmissionPolicyBinding name: "name_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", @@ -829,7 +800,7 @@ const request: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBin }, }; -const data = await apiInstance.deleteValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.deleteMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -839,7 +810,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicyBinding | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicyBinding | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined @@ -918,22 +889,22 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy() +# **listMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicyList listMutatingAdmissionPolicy() -list or watch objects of kind ValidatingAdmissionPolicy +list or watch objects of kind MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyRequest = { +const request: AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -958,7 +929,7 @@ const request: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyReque watch: true, }; -const data = await apiInstance.listValidatingAdmissionPolicy(request); +const data = await apiInstance.listMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -982,7 +953,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicyList** +**V1beta1MutatingAdmissionPolicyList** ### Authorization @@ -1002,22 +973,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding() +# **listMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding() -list or watch objects of kind ValidatingAdmissionPolicyBinding +list or watch objects of kind MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindingRequest = { +const request: AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyBindingRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -1042,7 +1013,7 @@ const request: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindi watch: true, }; -const data = await apiInstance.listValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.listMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -1066,7 +1037,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicyBindingList** +**V1beta1MutatingAdmissionPolicyBindingList** ### Authorization @@ -1086,23 +1057,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(body) +# **patchMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy patchMutatingAdmissionPolicy(body) -partially update the specified ValidatingAdmissionPolicy +partially update the specified MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequest = { - // name of the ValidatingAdmissionPolicy +const request: AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyRequest = { + // name of the MutatingAdmissionPolicy name: "name_example", body: {}, @@ -1118,7 +1089,7 @@ const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequ force: true, }; -const data = await apiInstance.patchValidatingAdmissionPolicy(request); +const data = await apiInstance.patchMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -1128,7 +1099,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **any**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicy | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined @@ -1138,7 +1109,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicy** ### Authorization @@ -1159,23 +1130,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(body) +# **patchMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding patchMutatingAdmissionPolicyBinding(body) -partially update the specified ValidatingAdmissionPolicyBinding +partially update the specified MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBindingRequest = { - // name of the ValidatingAdmissionPolicyBinding +const request: AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyBindingRequest = { + // name of the MutatingAdmissionPolicyBinding name: "name_example", body: {}, @@ -1191,7 +1162,7 @@ const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBind force: true, }; -const data = await apiInstance.patchValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.patchMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -1201,7 +1172,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **any**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicyBinding | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicyBinding | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined @@ -1211,7 +1182,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicyBinding** +**V1beta1MutatingAdmissionPolicyBinding** ### Authorization @@ -1232,159 +1203,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(body) - -partially update status of the specified ValidatingAdmissionPolicy - -### Example - - -```typescript -import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyStatusRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new AdmissionregistrationV1beta1Api(configuration); - -const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyStatusRequest = { - // name of the ValidatingAdmissionPolicy - name: "name_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchValidatingAdmissionPolicyStatus(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1beta1ValidatingAdmissionPolicy** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicy() - -read the specified ValidatingAdmissionPolicy - -### Example - - -```typescript -import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new AdmissionregistrationV1beta1Api(configuration); - -const request: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyRequest = { - // name of the ValidatingAdmissionPolicy - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readValidatingAdmissionPolicy(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1beta1ValidatingAdmissionPolicy** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBinding() +# **readMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy readMutatingAdmissionPolicy() -read the specified ValidatingAdmissionPolicyBinding +read the specified MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyBindingRequest = { - // name of the ValidatingAdmissionPolicyBinding +const request: AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyRequest = { + // name of the MutatingAdmissionPolicy name: "name_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", }; -const data = await apiInstance.readValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.readMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -1393,13 +1234,13 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ValidatingAdmissionPolicyBinding | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicy | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined ### Return type -**V1beta1ValidatingAdmissionPolicyBinding** +**V1beta1MutatingAdmissionPolicy** ### Authorization @@ -1419,29 +1260,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **readValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicyStatus() +# **readMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding readMutatingAdmissionPolicyBinding() -read status of the specified ValidatingAdmissionPolicy +read the specified MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyStatusRequest } from ''; +import type { AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyStatusRequest = { - // name of the ValidatingAdmissionPolicy +const request: AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyBindingRequest = { + // name of the MutatingAdmissionPolicyBinding name: "name_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", }; -const data = await apiInstance.readValidatingAdmissionPolicyStatus(request); +const data = await apiInstance.readMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -1450,13 +1291,13 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicyBinding | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicyBinding** ### Authorization @@ -1476,23 +1317,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicy(body) +# **replaceMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy replaceMutatingAdmissionPolicy(body) -replace the specified ValidatingAdmissionPolicy +replace the specified MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRequest = { - // name of the ValidatingAdmissionPolicy +const request: AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyRequest = { + // name of the MutatingAdmissionPolicy name: "name_example", body: { @@ -1541,12 +1382,6 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRe uid: "uid_example", }, spec: { - auditAnnotations: [ - { - key: "key_example", - valueExpression: "valueExpression_example", - }, - ], failurePolicy: "failurePolicy_example", matchConditions: [ { @@ -1625,18 +1460,22 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRe }, ], }, + mutations: [ + { + applyConfiguration: { + expression: "expression_example", + }, + jsonPatch: { + expression: "expression_example", + }, + patchType: "patchType_example", + }, + ], paramKind: { apiVersion: "apiVersion_example", kind: "kind_example", }, - validations: [ - { - expression: "expression_example", - message: "message_example", - messageExpression: "messageExpression_example", - reason: "reason_example", - }, - ], + reinvocationPolicy: "reinvocationPolicy_example", variables: [ { expression: "expression_example", @@ -1644,27 +1483,6 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRe }, ], }, - status: { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - observedGeneration: 1, - typeChecking: { - expressionWarnings: [ - { - fieldRef: "fieldRef_example", - warning: "warning_example", - }, - ], - }, - }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", @@ -1676,7 +1494,7 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRe fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.replaceValidatingAdmissionPolicy(request); +const data = await apiInstance.replaceMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -1685,8 +1503,8 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicy**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **body** | **V1beta1MutatingAdmissionPolicy**| | + **name** | [**string**] | name of the MutatingAdmissionPolicy | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -1695,7 +1513,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicy** ### Authorization @@ -1716,23 +1534,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding replaceValidatingAdmissionPolicyBinding(body) +# **replaceMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding replaceMutatingAdmissionPolicyBinding(body) -replace the specified ValidatingAdmissionPolicyBinding +replace the specified MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBindingRequest = { - // name of the ValidatingAdmissionPolicyBinding +const request: AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyBindingRequest = { + // name of the MutatingAdmissionPolicyBinding name: "name_example", body: { @@ -1872,249 +1690,6 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBi }, }, policyName: "policyName_example", - validationActions: [ - "validationActions_example", - ], - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; - -const data = await apiInstance.replaceValidatingAdmissionPolicyBinding(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicyBinding**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicyBinding | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - - -### Return type - -**V1beta1ValidatingAdmissionPolicyBinding** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **replaceValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(body) - -replace status of the specified ValidatingAdmissionPolicy - -### Example - - -```typescript -import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyStatusRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new AdmissionregistrationV1beta1Api(configuration); - -const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyStatusRequest = { - // name of the ValidatingAdmissionPolicy - name: "name_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - auditAnnotations: [ - { - key: "key_example", - valueExpression: "valueExpression_example", - }, - ], - failurePolicy: "failurePolicy_example", - matchConditions: [ - { - expression: "expression_example", - name: "name_example", - }, - ], - matchConstraints: { - excludeResourceRules: [ - { - apiGroups: [ - "apiGroups_example", - ], - apiVersions: [ - "apiVersions_example", - ], - operations: [ - "operations_example", - ], - resourceNames: [ - "resourceNames_example", - ], - resources: [ - "resources_example", - ], - scope: "scope_example", - }, - ], - matchPolicy: "matchPolicy_example", - namespaceSelector: { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchLabels: { - "key": "key_example", - }, - }, - objectSelector: { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchLabels: { - "key": "key_example", - }, - }, - resourceRules: [ - { - apiGroups: [ - "apiGroups_example", - ], - apiVersions: [ - "apiVersions_example", - ], - operations: [ - "operations_example", - ], - resourceNames: [ - "resourceNames_example", - ], - resources: [ - "resources_example", - ], - scope: "scope_example", - }, - ], - }, - paramKind: { - apiVersion: "apiVersion_example", - kind: "kind_example", - }, - validations: [ - { - expression: "expression_example", - message: "message_example", - messageExpression: "messageExpression_example", - reason: "reason_example", - }, - ], - variables: [ - { - expression: "expression_example", - name: "name_example", - }, - ], - }, - status: { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - observedGeneration: 1, - typeChecking: { - expressionWarnings: [ - { - fieldRef: "fieldRef_example", - warning: "warning_example", - }, - ], - }, }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -2127,7 +1702,7 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicySt fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.replaceValidatingAdmissionPolicyStatus(request); +const data = await apiInstance.replaceMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -2136,8 +1711,8 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicy**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **body** | **V1beta1MutatingAdmissionPolicyBinding**| | + **name** | [**string**] | name of the MutatingAdmissionPolicyBinding | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -2146,7 +1721,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicyBinding** ### Authorization diff --git a/src/gen/AppsV1Api.md b/src/gen/AppsV1Api.md index 9d9830326d..086322b517 100644 --- a/src/gen/AppsV1Api.md +++ b/src/gen/AppsV1Api.md @@ -566,6 +566,12 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -746,6 +752,17 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -879,6 +896,12 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -1059,6 +1082,17 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -1168,6 +1202,7 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -1195,6 +1230,12 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -1375,6 +1416,17 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -1909,6 +1961,14 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -2465,6 +2525,12 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -2645,6 +2711,17 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -2778,6 +2855,12 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -2958,6 +3041,17 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -3067,6 +3161,7 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -3094,6 +3189,12 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -3274,6 +3375,17 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -3808,6 +3920,14 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -4347,6 +4467,12 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -4527,6 +4653,17 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -4660,6 +4797,12 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -4840,6 +4983,17 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -4949,6 +5103,7 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -4976,6 +5131,12 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -5156,6 +5317,17 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -5690,6 +5862,14 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -6236,6 +6416,12 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -6416,6 +6602,17 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -6549,6 +6746,12 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -6729,6 +6932,17 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -6838,6 +7052,7 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -6865,6 +7080,12 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -7045,6 +7266,17 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -7579,6 +7811,14 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -11931,6 +12171,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -12111,6 +12357,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -12244,6 +12501,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -12424,6 +12687,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -12533,6 +12807,7 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -12560,6 +12835,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -12740,6 +13021,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -13274,6 +13566,14 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -13822,6 +14122,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -14002,6 +14308,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -14135,6 +14452,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -14315,6 +14638,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -14424,6 +14758,7 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -14451,6 +14786,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -14631,6 +14972,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -15165,6 +15517,14 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -15723,6 +16083,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -15903,6 +16269,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -16036,6 +16413,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -16216,6 +16599,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -16325,6 +16719,7 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -16352,6 +16747,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -16532,6 +16933,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -17066,6 +17478,14 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -17742,6 +18162,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -17922,6 +18348,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -18055,6 +18492,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -18235,6 +18678,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -18344,6 +18798,7 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -18371,6 +18826,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -18551,6 +19012,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -19085,6 +19557,14 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -19626,6 +20106,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -19806,6 +20292,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -19939,6 +20436,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -20119,6 +20622,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -20228,6 +20742,7 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -20255,6 +20770,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -20435,6 +20956,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -20969,6 +21501,14 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -21632,6 +22172,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -21812,6 +22358,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -21945,6 +22502,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -22125,6 +22688,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -22234,6 +22808,7 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -22261,6 +22836,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -22441,6 +23022,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -22975,6 +23567,14 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -23523,6 +24123,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -23703,6 +24309,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -23836,6 +24453,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -24016,6 +24639,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -24125,6 +24759,7 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -24152,6 +24787,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -24332,6 +24973,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -24866,6 +25518,14 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -25669,6 +26329,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -25849,6 +26515,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -25982,6 +26659,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -26162,6 +26845,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -26271,6 +26965,7 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -26298,6 +26993,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -26478,6 +27179,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -27012,6 +27724,14 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { diff --git a/src/gen/BatchV1Api.md b/src/gen/BatchV1Api.md index 6dd087b2f3..2003ec1911 100644 --- a/src/gen/BatchV1Api.md +++ b/src/gen/BatchV1Api.md @@ -492,6 +492,12 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -672,6 +678,17 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -805,6 +822,12 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -985,6 +1008,17 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -1094,6 +1128,7 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -1121,6 +1156,12 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -1301,6 +1342,17 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -1835,6 +1887,14 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -2414,6 +2474,12 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -2594,6 +2660,17 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -2727,6 +2804,12 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -2907,6 +2990,17 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -3016,6 +3110,7 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -3043,6 +3138,12 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -3223,6 +3324,17 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -3757,6 +3869,14 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -5736,6 +5856,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -5916,6 +6042,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -6049,6 +6186,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -6229,6 +6372,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -6338,6 +6492,7 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -6365,6 +6520,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -6545,6 +6706,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -7079,6 +7251,14 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -7706,6 +7886,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -7886,6 +8072,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -8019,6 +8216,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -8199,6 +8402,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -8308,6 +8522,7 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -8335,6 +8550,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -8515,6 +8736,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -9049,6 +9281,14 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -9630,6 +9870,12 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -9810,6 +10056,17 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -9943,6 +10200,12 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -10123,6 +10386,17 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -10232,6 +10506,7 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -10259,6 +10534,12 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -10439,6 +10720,17 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -10973,6 +11265,14 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -11561,6 +11861,12 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -11741,6 +12047,17 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -11874,6 +12191,12 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -12054,6 +12377,17 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -12163,6 +12497,7 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -12190,6 +12525,12 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -12370,6 +12711,17 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -12904,6 +13256,14 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { diff --git a/src/gen/CertificatesV1alpha1Api.md b/src/gen/CertificatesV1alpha1Api.md index 359cf306c8..422a2847ba 100644 --- a/src/gen/CertificatesV1alpha1Api.md +++ b/src/gen/CertificatesV1alpha1Api.md @@ -5,13 +5,24 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**createClusterTrustBundle**](CertificatesV1alpha1Api.md#createClusterTrustBundle) | **POST** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | +[**createNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#createNamespacedPodCertificateRequest) | **POST** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | [**deleteClusterTrustBundle**](CertificatesV1alpha1Api.md#deleteClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | [**deleteCollectionClusterTrustBundle**](CertificatesV1alpha1Api.md#deleteCollectionClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | +[**deleteCollectionNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#deleteCollectionNamespacedPodCertificateRequest) | **DELETE** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | +[**deleteNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#deleteNamespacedPodCertificateRequest) | **DELETE** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | [**getAPIResources**](CertificatesV1alpha1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | [**listClusterTrustBundle**](CertificatesV1alpha1Api.md#listClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | +[**listNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#listNamespacedPodCertificateRequest) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | +[**listPodCertificateRequestForAllNamespaces**](CertificatesV1alpha1Api.md#listPodCertificateRequestForAllNamespaces) | **GET** /apis/certificates.k8s.io/v1alpha1/podcertificaterequests | [**patchClusterTrustBundle**](CertificatesV1alpha1Api.md#patchClusterTrustBundle) | **PATCH** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +[**patchNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#patchNamespacedPodCertificateRequest) | **PATCH** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | +[**patchNamespacedPodCertificateRequestStatus**](CertificatesV1alpha1Api.md#patchNamespacedPodCertificateRequestStatus) | **PATCH** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status | [**readClusterTrustBundle**](CertificatesV1alpha1Api.md#readClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +[**readNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#readNamespacedPodCertificateRequest) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | +[**readNamespacedPodCertificateRequestStatus**](CertificatesV1alpha1Api.md#readNamespacedPodCertificateRequestStatus) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status | [**replaceClusterTrustBundle**](CertificatesV1alpha1Api.md#replaceClusterTrustBundle) | **PUT** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +[**replaceNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#replaceNamespacedPodCertificateRequest) | **PUT** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | +[**replaceNamespacedPodCertificateRequestStatus**](CertificatesV1alpha1Api.md#replaceNamespacedPodCertificateRequestStatus) | **PUT** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status | # **createClusterTrustBundle** @@ -121,6 +132,150 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest createNamespacedPodCertificateRequest(body) + +create a PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiCreateNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiCreateNamespacedPodCertificateRequestRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + maxExpirationSeconds: 1, + nodeName: "nodeName_example", + nodeUID: "nodeUID_example", + pkixPublicKey: 'YQ==', + podName: "podName_example", + podUID: "podUID_example", + proofOfPossession: 'YQ==', + serviceAccountName: "serviceAccountName_example", + serviceAccountUID: "serviceAccountUID_example", + signerName: "signerName_example", + }, + status: { + beginRefreshAt: new Date('1970-01-01T00:00:00.00Z'), + certificateChain: "certificateChain_example", + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + notAfter: new Date('1970-01-01T00:00:00.00Z'), + notBefore: new Date('1970-01-01T00:00:00.00Z'), + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1alpha1PodCertificateRequest**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequest** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -283,7 +438,810 @@ const request: CertificatesV1alpha1ApiDeleteCollectionClusterTrustBundleRequest }, }; -const data = await apiInstance.deleteCollectionClusterTrustBundle(request); +const data = await apiInstance.deleteCollectionClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionNamespacedPodCertificateRequest** +> V1Status deleteCollectionNamespacedPodCertificateRequest() + +delete collection of PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiDeleteCollectionNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiDeleteCollectionNamespacedPodCertificateRequestRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteNamespacedPodCertificateRequest** +> V1Status deleteNamespacedPodCertificateRequest() + +delete a PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiDeleteNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiDeleteNamespacedPodCertificateRequestRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **getAPIResources** +> V1APIResourceList getAPIResources() + +get available resources + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request = {}; + +const data = await apiInstance.getAPIResources(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters +This endpoint does not need any parameter. + + +### Return type + +**V1APIResourceList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listClusterTrustBundle** +> V1alpha1ClusterTrustBundleList listClusterTrustBundle() + +list or watch objects of kind ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiListClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiListClusterTrustBundleRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1alpha1ClusterTrustBundleList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequestList listNamespacedPodCertificateRequest() + +list or watch objects of kind PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiListNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiListNamespacedPodCertificateRequestRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequestList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listPodCertificateRequestForAllNamespaces** +> V1alpha1PodCertificateRequestList listPodCertificateRequestForAllNamespaces() + +list or watch objects of kind PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiListPodCertificateRequestForAllNamespacesRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiListPodCertificateRequestForAllNamespacesRequest = { + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listPodCertificateRequestForAllNamespaces(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequestList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchClusterTrustBundle** +> V1alpha1ClusterTrustBundle patchClusterTrustBundle(body) + +partially update the specified ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiPatchClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiPatchClusterTrustBundleRequest = { + // name of the ClusterTrustBundle + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1alpha1ClusterTrustBundle** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest patchNamespacedPodCertificateRequest(body) + +partially update the specified PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequest** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedPodCertificateRequestStatus** +> V1alpha1PodCertificateRequest patchNamespacedPodCertificateRequestStatus(body) + +partially update status of the specified PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestStatusRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedPodCertificateRequestStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequest** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readClusterTrustBundle** +> V1alpha1ClusterTrustBundle readClusterTrustBundle() + +read the specified ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiReadClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiReadClusterTrustBundleRequest = { + // name of the ClusterTrustBundle + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readClusterTrustBundle(request); console.log('API called successfully. Returned data:', data); ``` @@ -292,26 +1250,13 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined ### Return type -**V1Status** +**V1alpha1ClusterTrustBundle** ### Authorization @@ -331,34 +1276,47 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **getAPIResources** -> V1APIResourceList getAPIResources() +# **readNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest readNamespacedPodCertificateRequest() -get available resources +read the specified PodCertificateRequest ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request = {}; +const request: CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; -const data = await apiInstance.getAPIResources(request); +const data = await apiInstance.readNamespacedPodCertificateRequest(request); console.log('API called successfully. Returned data:', data); ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined ### Return type -**V1APIResourceList** +**V1alpha1PodCertificateRequest** ### Authorization @@ -378,47 +1336,31 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listClusterTrustBundle** -> V1alpha1ClusterTrustBundleList listClusterTrustBundle() +# **readNamespacedPodCertificateRequestStatus** +> V1alpha1PodCertificateRequest readNamespacedPodCertificateRequestStatus() -list or watch objects of kind ClusterTrustBundle +read status of the specified PodCertificateRequest ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; -import type { CertificatesV1alpha1ApiListClusterTrustBundleRequest } from ''; +import type { CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestStatusRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request: CertificatesV1alpha1ApiListClusterTrustBundleRequest = { +const request: CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestStatusRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, }; -const data = await apiInstance.listClusterTrustBundle(request); +const data = await apiInstance.readNamespacedPodCertificateRequestStatus(request); console.log('API called successfully. Returned data:', data); ``` @@ -427,22 +1369,14 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined ### Return type -**V1alpha1ClusterTrustBundleList** +**V1alpha1PodCertificateRequest** ### Authorization @@ -451,7 +1385,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details @@ -462,39 +1396,86 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchClusterTrustBundle** -> V1alpha1ClusterTrustBundle patchClusterTrustBundle(body) +# **replaceClusterTrustBundle** +> V1alpha1ClusterTrustBundle replaceClusterTrustBundle(body) -partially update the specified ClusterTrustBundle +replace the specified ClusterTrustBundle ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; -import type { CertificatesV1alpha1ApiPatchClusterTrustBundleRequest } from ''; +import type { CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request: CertificatesV1alpha1ApiPatchClusterTrustBundleRequest = { +const request: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest = { // name of the ClusterTrustBundle name: "name_example", - body: {}, + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + signerName: "signerName_example", + trustBundle: "trustBundle_example", + }, + }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) fieldManager: "fieldManager_example", // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, }; -const data = await apiInstance.patchClusterTrustBundle(request); +const data = await apiInstance.replaceClusterTrustBundle(request); console.log('API called successfully. Returned data:', data); ``` @@ -503,13 +1484,12 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **any**| | + **body** | **V1alpha1ClusterTrustBundle**| | **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined ### Return type @@ -522,7 +1502,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor @@ -535,29 +1515,112 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **readClusterTrustBundle** -> V1alpha1ClusterTrustBundle readClusterTrustBundle() +# **replaceNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest replaceNamespacedPodCertificateRequest(body) -read the specified ClusterTrustBundle +replace the specified PodCertificateRequest ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; -import type { CertificatesV1alpha1ApiReadClusterTrustBundleRequest } from ''; +import type { CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request: CertificatesV1alpha1ApiReadClusterTrustBundleRequest = { - // name of the ClusterTrustBundle +const request: CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestRequest = { + // name of the PodCertificateRequest name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + maxExpirationSeconds: 1, + nodeName: "nodeName_example", + nodeUID: "nodeUID_example", + pkixPublicKey: 'YQ==', + podName: "podName_example", + podUID: "podUID_example", + proofOfPossession: 'YQ==', + serviceAccountName: "serviceAccountName_example", + serviceAccountUID: "serviceAccountUID_example", + signerName: "signerName_example", + }, + status: { + beginRefreshAt: new Date('1970-01-01T00:00:00.00Z'), + certificateChain: "certificateChain_example", + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + notAfter: new Date('1970-01-01T00:00:00.00Z'), + notBefore: new Date('1970-01-01T00:00:00.00Z'), + }, + }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.readClusterTrustBundle(request); +const data = await apiInstance.replaceNamespacedPodCertificateRequest(request); console.log('API called successfully. Returned data:', data); ``` @@ -566,13 +1629,18 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined + **body** | **V1alpha1PodCertificateRequest**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined ### Return type -**V1alpha1ClusterTrustBundle** +**V1alpha1PodCertificateRequest** ### Authorization @@ -588,28 +1656,31 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceClusterTrustBundle** -> V1alpha1ClusterTrustBundle replaceClusterTrustBundle(body) +# **replaceNamespacedPodCertificateRequestStatus** +> V1alpha1PodCertificateRequest replaceNamespacedPodCertificateRequestStatus(body) -replace the specified ClusterTrustBundle +replace status of the specified PodCertificateRequest ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; -import type { CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest } from ''; +import type { CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestStatusRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest = { - // name of the ClusterTrustBundle +const request: CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestStatusRequest = { + // name of the PodCertificateRequest name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", body: { apiVersion: "apiVersion_example", @@ -657,8 +1728,32 @@ const request: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest = { uid: "uid_example", }, spec: { + maxExpirationSeconds: 1, + nodeName: "nodeName_example", + nodeUID: "nodeUID_example", + pkixPublicKey: 'YQ==', + podName: "podName_example", + podUID: "podUID_example", + proofOfPossession: 'YQ==', + serviceAccountName: "serviceAccountName_example", + serviceAccountUID: "serviceAccountUID_example", signerName: "signerName_example", - trustBundle: "trustBundle_example", + }, + status: { + beginRefreshAt: new Date('1970-01-01T00:00:00.00Z'), + certificateChain: "certificateChain_example", + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + notAfter: new Date('1970-01-01T00:00:00.00Z'), + notBefore: new Date('1970-01-01T00:00:00.00Z'), }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -671,7 +1766,7 @@ const request: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest = { fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.replaceClusterTrustBundle(request); +const data = await apiInstance.replaceNamespacedPodCertificateRequestStatus(request); console.log('API called successfully. Returned data:', data); ``` @@ -680,8 +1775,9 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha1ClusterTrustBundle**| | - **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined + **body** | **V1alpha1PodCertificateRequest**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -690,7 +1786,7 @@ Name | Type | Description | Notes ### Return type -**V1alpha1ClusterTrustBundle** +**V1alpha1PodCertificateRequest** ### Authorization diff --git a/src/gen/CoreV1Api.md b/src/gen/CoreV1Api.md index c2a4158199..9f97db2967 100644 --- a/src/gen/CoreV1Api.md +++ b/src/gen/CoreV1Api.md @@ -4503,6 +4503,12 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -4683,6 +4689,17 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -4816,6 +4833,12 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -4996,6 +5019,17 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -5105,6 +5139,7 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -5132,6 +5167,12 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -5312,6 +5353,17 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -5846,6 +5898,14 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -6129,6 +6189,16 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -6926,6 +6996,12 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -7106,6 +7182,17 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -7239,6 +7326,12 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -7419,6 +7512,17 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -7528,6 +7632,7 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -7555,6 +7660,12 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -7735,6 +7846,17 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -8269,6 +8391,14 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -8776,6 +8906,12 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -8956,6 +9092,17 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -9089,6 +9236,12 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -9269,6 +9422,17 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -9378,6 +9542,7 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -9405,6 +9570,12 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -9585,6 +9756,17 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -10119,6 +10301,14 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -22339,6 +22529,12 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -22519,6 +22715,17 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -22652,6 +22859,12 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -22832,6 +23045,17 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -22941,6 +23165,7 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -22968,6 +23193,12 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -23148,6 +23379,17 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -23682,6 +23924,14 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -23965,6 +24215,16 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -24459,6 +24719,12 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -24639,6 +24905,17 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -24772,6 +25049,12 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -24952,6 +25235,17 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -25061,6 +25355,7 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -25088,6 +25383,12 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -25268,6 +25569,17 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -25802,6 +26114,14 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -26085,6 +26405,16 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -26579,6 +26909,12 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -26759,6 +27095,17 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -26892,6 +27239,12 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -27072,6 +27425,17 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -27181,6 +27545,7 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -27208,6 +27573,12 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -27388,6 +27759,17 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -27922,6 +28304,14 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -28205,6 +28595,16 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -28699,6 +29099,12 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -28879,6 +29285,17 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -29012,6 +29429,12 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -29192,6 +29615,17 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -29301,6 +29735,7 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -29328,6 +29763,12 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -29508,6 +29949,17 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -30042,6 +30494,14 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -30325,6 +30785,16 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -30862,6 +31332,12 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -31042,6 +31518,17 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -31175,6 +31662,12 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -31355,6 +31848,17 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -31464,6 +31968,7 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -31491,6 +31996,12 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -31671,6 +32182,17 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -32205,6 +32727,14 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -32714,6 +33244,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -32894,6 +33430,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -33027,6 +33574,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -33207,6 +33760,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -33316,6 +33880,7 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -33343,6 +33908,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -33523,6 +34094,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -34057,6 +34639,14 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -34708,6 +35298,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -34888,6 +35484,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -35021,6 +35628,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -35201,6 +35814,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -35310,6 +35934,7 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -35337,6 +35962,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -35517,6 +36148,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -36051,6 +36693,14 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { diff --git a/src/gen/ResourceV1Api.md b/src/gen/ResourceV1Api.md new file mode 100644 index 0000000000..65c694ad1e --- /dev/null +++ b/src/gen/ResourceV1Api.md @@ -0,0 +1,4238 @@ +# .ResourceV1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createDeviceClass**](ResourceV1Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1/deviceclasses | +[**createNamespacedResourceClaim**](ResourceV1Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | +[**createNamespacedResourceClaimTemplate**](ResourceV1Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | +[**createResourceSlice**](ResourceV1Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1/resourceslices | +[**deleteCollectionDeviceClass**](ResourceV1Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses | +[**deleteCollectionNamespacedResourceClaim**](ResourceV1Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | +[**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | +[**deleteCollectionResourceSlice**](ResourceV1Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices | +[**deleteDeviceClass**](ResourceV1Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**deleteNamespacedResourceClaim**](ResourceV1Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | +[**deleteNamespacedResourceClaimTemplate**](ResourceV1Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**deleteResourceSlice**](ResourceV1Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices/{name} | +[**getAPIResources**](ResourceV1Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1/ | +[**listDeviceClass**](ResourceV1Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1/deviceclasses | +[**listNamespacedResourceClaim**](ResourceV1Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | +[**listNamespacedResourceClaimTemplate**](ResourceV1Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | +[**listResourceClaimForAllNamespaces**](ResourceV1Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaims | +[**listResourceClaimTemplateForAllNamespaces**](ResourceV1Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaimtemplates | +[**listResourceSlice**](ResourceV1Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1/resourceslices | +[**patchDeviceClass**](ResourceV1Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**patchNamespacedResourceClaim**](ResourceV1Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | +[**patchNamespacedResourceClaimStatus**](ResourceV1Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | +[**patchNamespacedResourceClaimTemplate**](ResourceV1Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**patchResourceSlice**](ResourceV1Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1/resourceslices/{name} | +[**readDeviceClass**](ResourceV1Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**readNamespacedResourceClaim**](ResourceV1Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | +[**readNamespacedResourceClaimStatus**](ResourceV1Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | +[**readNamespacedResourceClaimTemplate**](ResourceV1Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**readResourceSlice**](ResourceV1Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1/resourceslices/{name} | +[**replaceDeviceClass**](ResourceV1Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**replaceNamespacedResourceClaim**](ResourceV1Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | +[**replaceNamespacedResourceClaimStatus**](ResourceV1Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | +[**replaceNamespacedResourceClaimTemplate**](ResourceV1Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**replaceResourceSlice**](ResourceV1Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1/resourceslices/{name} | + + +# **createDeviceClass** +> V1DeviceClass createDeviceClass(body) + +create a DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiCreateDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiCreateDeviceClassRequest = { + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + }, + ], + extendedResourceName: "extendedResourceName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeviceClass**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createNamespacedResourceClaim** +> ResourceV1ResourceClaim createNamespacedResourceClaim(body) + +create a ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiCreateNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiCreateNamespacedResourceClaimRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + status: { + allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + source: "source_example", + }, + ], + results: [ + { + adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, + device: "device_example", + driver: "driver_example", + pool: "pool_example", + request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + }, + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + }, + devices: [ + { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + data: {}, + device: "device_example", + driver: "driver_example", + networkData: { + hardwareAddress: "hardwareAddress_example", + interfaceName: "interfaceName_example", + ips: [ + "ips_example", + ], + }, + pool: "pool_example", + shareID: "shareID_example", + }, + ], + reservedFor: [ + { + apiGroup: "apiGroup_example", + name: "name_example", + resource: "resource_example", + uid: "uid_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **ResourceV1ResourceClaim**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate createNamespacedResourceClaimTemplate(body) + +create a ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiCreateNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiCreateNamespacedResourceClaimTemplateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ResourceClaimTemplate**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createResourceSlice** +> V1ResourceSlice createResourceSlice(body) + +create a ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiCreateResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiCreateResourceSliceRequest = { + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + allNodes: true, + devices: [ + { + allNodes: true, + allowMultipleAllocations: true, + attributes: { + "key": { + bool: true, + _int: 1, + string: "string_example", + version: "version_example", + }, + }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, + capacity: { + "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, + value: "value_example", + }, + }, + consumesCounters: [ + { + counterSet: "counterSet_example", + counters: { + "key": { + value: "value_example", + }, + }, + }, + ], + name: "name_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + taints: [ + { + effect: "effect_example", + key: "key_example", + timeAdded: new Date('1970-01-01T00:00:00.00Z'), + value: "value_example", + }, + ], + }, + ], + driver: "driver_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + perDeviceNodeSelection: true, + pool: { + generation: 1, + name: "name_example", + resourceSliceCount: 1, + }, + sharedCounters: [ + { + counters: { + "key": { + value: "value_example", + }, + }, + name: "name_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ResourceSlice**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionDeviceClass** +> V1Status deleteCollectionDeviceClass() + +delete collection of DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteCollectionDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteCollectionDeviceClassRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionNamespacedResourceClaim** +> V1Status deleteCollectionNamespacedResourceClaim() + +delete collection of ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteCollectionNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteCollectionNamespacedResourceClaimRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionNamespacedResourceClaimTemplate** +> V1Status deleteCollectionNamespacedResourceClaimTemplate() + +delete collection of ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionResourceSlice** +> V1Status deleteCollectionResourceSlice() + +delete collection of ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteCollectionResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteCollectionResourceSliceRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteDeviceClass** +> V1DeviceClass deleteDeviceClass() + +delete a DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteNamespacedResourceClaim** +> ResourceV1ResourceClaim deleteNamespacedResourceClaim() + +delete a ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate deleteNamespacedResourceClaimTemplate() + +delete a ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteResourceSlice** +> V1ResourceSlice deleteResourceSlice() + +delete a ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **getAPIResources** +> V1APIResourceList getAPIResources() + +get available resources + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request = {}; + +const data = await apiInstance.getAPIResources(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters +This endpoint does not need any parameter. + + +### Return type + +**V1APIResourceList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listDeviceClass** +> V1DeviceClassList listDeviceClass() + +list or watch objects of kind DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListDeviceClassRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClassList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listNamespacedResourceClaim** +> V1ResourceClaimList listNamespacedResourceClaim() + +list or watch objects of kind ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListNamespacedResourceClaimRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplateList listNamespacedResourceClaimTemplate() + +list or watch objects of kind ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListNamespacedResourceClaimTemplateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplateList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listResourceClaimForAllNamespaces** +> V1ResourceClaimList listResourceClaimForAllNamespaces() + +list or watch objects of kind ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListResourceClaimForAllNamespacesRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListResourceClaimForAllNamespacesRequest = { + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listResourceClaimForAllNamespaces(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listResourceClaimTemplateForAllNamespaces** +> V1ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces() + +list or watch objects of kind ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListResourceClaimTemplateForAllNamespacesRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListResourceClaimTemplateForAllNamespacesRequest = { + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listResourceClaimTemplateForAllNamespaces(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplateList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listResourceSlice** +> V1ResourceSliceList listResourceSlice() + +list or watch objects of kind ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListResourceSliceRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSliceList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchDeviceClass** +> V1DeviceClass patchDeviceClass(body) + +partially update the specified DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedResourceClaim** +> ResourceV1ResourceClaim patchNamespacedResourceClaim(body) + +partially update the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedResourceClaimStatus** +> ResourceV1ResourceClaim patchNamespacedResourceClaimStatus(body) + +partially update status of the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchNamespacedResourceClaimStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchNamespacedResourceClaimStatusRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedResourceClaimStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate patchNamespacedResourceClaimTemplate(body) + +partially update the specified ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchResourceSlice** +> V1ResourceSlice patchResourceSlice(body) + +partially update the specified ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readDeviceClass** +> V1DeviceClass readDeviceClass() + +read the specified DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readNamespacedResourceClaim** +> ResourceV1ResourceClaim readNamespacedResourceClaim() + +read the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readNamespacedResourceClaimStatus** +> ResourceV1ResourceClaim readNamespacedResourceClaimStatus() + +read status of the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadNamespacedResourceClaimStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadNamespacedResourceClaimStatusRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readNamespacedResourceClaimStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate readNamespacedResourceClaimTemplate() + +read the specified ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readResourceSlice** +> V1ResourceSlice readResourceSlice() + +read the specified ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceDeviceClass** +> V1DeviceClass replaceDeviceClass(body) + +replace the specified DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + }, + ], + extendedResourceName: "extendedResourceName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeviceClass**| | + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceNamespacedResourceClaim** +> ResourceV1ResourceClaim replaceNamespacedResourceClaim(body) + +replace the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + status: { + allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + source: "source_example", + }, + ], + results: [ + { + adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, + device: "device_example", + driver: "driver_example", + pool: "pool_example", + request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + }, + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + }, + devices: [ + { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + data: {}, + device: "device_example", + driver: "driver_example", + networkData: { + hardwareAddress: "hardwareAddress_example", + interfaceName: "interfaceName_example", + ips: [ + "ips_example", + ], + }, + pool: "pool_example", + shareID: "shareID_example", + }, + ], + reservedFor: [ + { + apiGroup: "apiGroup_example", + name: "name_example", + resource: "resource_example", + uid: "uid_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **ResourceV1ResourceClaim**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceNamespacedResourceClaimStatus** +> ResourceV1ResourceClaim replaceNamespacedResourceClaimStatus(body) + +replace status of the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceNamespacedResourceClaimStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceNamespacedResourceClaimStatusRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + status: { + allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + source: "source_example", + }, + ], + results: [ + { + adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, + device: "device_example", + driver: "driver_example", + pool: "pool_example", + request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + }, + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + }, + devices: [ + { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + data: {}, + device: "device_example", + driver: "driver_example", + networkData: { + hardwareAddress: "hardwareAddress_example", + interfaceName: "interfaceName_example", + ips: [ + "ips_example", + ], + }, + pool: "pool_example", + shareID: "shareID_example", + }, + ], + reservedFor: [ + { + apiGroup: "apiGroup_example", + name: "name_example", + resource: "resource_example", + uid: "uid_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceNamespacedResourceClaimStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **ResourceV1ResourceClaim**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(body) + +replace the specified ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ResourceClaimTemplate**| | + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceResourceSlice** +> V1ResourceSlice replaceResourceSlice(body) + +replace the specified ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + allNodes: true, + devices: [ + { + allNodes: true, + allowMultipleAllocations: true, + attributes: { + "key": { + bool: true, + _int: 1, + string: "string_example", + version: "version_example", + }, + }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, + capacity: { + "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, + value: "value_example", + }, + }, + consumesCounters: [ + { + counterSet: "counterSet_example", + counters: { + "key": { + value: "value_example", + }, + }, + }, + ], + name: "name_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + taints: [ + { + effect: "effect_example", + key: "key_example", + timeAdded: new Date('1970-01-01T00:00:00.00Z'), + value: "value_example", + }, + ], + }, + ], + driver: "driver_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + perDeviceNodeSelection: true, + pool: { + generation: 1, + name: "name_example", + resourceSliceCount: 1, + }, + sharedCounters: [ + { + counters: { + "key": { + value: "value_example", + }, + }, + name: "name_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ResourceSlice**| | + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + + diff --git a/src/gen/ResourceV1alpha3Api.md b/src/gen/ResourceV1alpha3Api.md index f8876159db..9412914796 100644 --- a/src/gen/ResourceV1alpha3Api.md +++ b/src/gen/ResourceV1alpha3Api.md @@ -4,179 +4,16 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createDeviceClass**](ResourceV1alpha3Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1alpha3/deviceclasses | [**createDeviceTaintRule**](ResourceV1alpha3Api.md#createDeviceTaintRule) | **POST** /apis/resource.k8s.io/v1alpha3/devicetaintrules | -[**createNamespacedResourceClaim**](ResourceV1alpha3Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | -[**createNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | -[**createResourceSlice**](ResourceV1alpha3Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1alpha3/resourceslices | -[**deleteCollectionDeviceClass**](ResourceV1alpha3Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1alpha3/deviceclasses | [**deleteCollectionDeviceTaintRule**](ResourceV1alpha3Api.md#deleteCollectionDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules | -[**deleteCollectionNamespacedResourceClaim**](ResourceV1alpha3Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | -[**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | -[**deleteCollectionResourceSlice**](ResourceV1alpha3Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourceslices | -[**deleteDeviceClass**](ResourceV1alpha3Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | [**deleteDeviceTaintRule**](ResourceV1alpha3Api.md#deleteDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | -[**deleteNamespacedResourceClaim**](ResourceV1alpha3Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -[**deleteNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**deleteResourceSlice**](ResourceV1alpha3Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | [**getAPIResources**](ResourceV1alpha3Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha3/ | -[**listDeviceClass**](ResourceV1alpha3Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1alpha3/deviceclasses | [**listDeviceTaintRule**](ResourceV1alpha3Api.md#listDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules | -[**listNamespacedResourceClaim**](ResourceV1alpha3Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | -[**listNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | -[**listResourceClaimForAllNamespaces**](ResourceV1alpha3Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha3/resourceclaims | -[**listResourceClaimTemplateForAllNamespaces**](ResourceV1alpha3Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha3/resourceclaimtemplates | -[**listResourceSlice**](ResourceV1alpha3Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1alpha3/resourceslices | -[**patchDeviceClass**](ResourceV1alpha3Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | [**patchDeviceTaintRule**](ResourceV1alpha3Api.md#patchDeviceTaintRule) | **PATCH** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | -[**patchNamespacedResourceClaim**](ResourceV1alpha3Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -[**patchNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | -[**patchNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**patchResourceSlice**](ResourceV1alpha3Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | -[**readDeviceClass**](ResourceV1alpha3Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | [**readDeviceTaintRule**](ResourceV1alpha3Api.md#readDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | -[**readNamespacedResourceClaim**](ResourceV1alpha3Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -[**readNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | -[**readNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**readResourceSlice**](ResourceV1alpha3Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | -[**replaceDeviceClass**](ResourceV1alpha3Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | [**replaceDeviceTaintRule**](ResourceV1alpha3Api.md#replaceDeviceTaintRule) | **PUT** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | -[**replaceNamespacedResourceClaim**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -[**replaceNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | -[**replaceNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**replaceResourceSlice**](ResourceV1alpha3Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | -# **createDeviceClass** -> V1alpha3DeviceClass createDeviceClass(body) - -create a DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiCreateDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiCreateDeviceClassRequest = { - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - }, - ], - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; - -const data = await apiInstance.createDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3DeviceClass**| | - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClass** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - # **createDeviceTaintRule** > V1alpha3DeviceTaintRule createDeviceTaintRule(body) @@ -311,247 +148,69 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **createNamespacedResourceClaim** -> V1alpha3ResourceClaim createNamespacedResourceClaim(body) +# **deleteCollectionDeviceTaintRule** +> V1Status deleteCollectionDeviceTaintRule() -create a ResourceClaim +delete collection of DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiCreateNamespacedResourceClaimRequest } from ''; +import type { ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiCreateNamespacedResourceClaimRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, body: { apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], + orphanDependents: true, + preconditions: { resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", uid: "uid_example", }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - firstAvailable: [ - { - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - }, - status: { - allocation: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - source: "source_example", - }, - ], - results: [ - { - adminAccess: true, - device: "device_example", - driver: "driver_example", - pool: "pool_example", - request: "request_example", - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - }, - devices: [ - { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - data: {}, - device: "device_example", - driver: "driver_example", - networkData: { - hardwareAddress: "hardwareAddress_example", - interfaceName: "interfaceName_example", - ips: [ - "ips_example", - ], - }, - pool: "pool_example", - }, - ], - reservedFor: [ - { - apiGroup: "apiGroup_example", - name: "name_example", - resource: "resource_example", - uid: "uid_example", - }, - ], - }, + propagationPolicy: "propagationPolicy_example", }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.createNamespacedResourceClaim(request); +const data = await apiInstance.deleteCollectionDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -560,17 +219,26 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaim**| | - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **body** | **V1DeleteOptions**| | **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined ### Return type -**V1alpha3ResourceClaim** +**V1Status** ### Authorization @@ -586,204 +254,59 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **createNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate createNamespacedResourceClaimTemplate(body) +# **deleteDeviceTaintRule** +> V1alpha3DeviceTaintRule deleteDeviceTaintRule() -create a ResourceClaimTemplate +delete a DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiCreateNamespacedResourceClaimTemplateRequest } from ''; +import type { ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiCreateNamespacedResourceClaimTemplateRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest = { + // name of the DeviceTaintRule + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", body: { apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], + orphanDependents: true, + preconditions: { resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", uid: "uid_example", }, - spec: { - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - firstAvailable: [ - { - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - }, - }, + propagationPolicy: "propagationPolicy_example", }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.createNamespacedResourceClaimTemplate(request); +const data = await apiInstance.deleteDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -792,17 +315,19 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaimTemplate**| | - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined ### Return type -**V1alpha3ResourceClaimTemplate** +**V1alpha3DeviceTaintRule** ### Authorization @@ -818,211 +343,39 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **createResourceSlice** -> V1alpha3ResourceSlice createResourceSlice(body) +# **getAPIResources** +> V1APIResourceList getAPIResources() -create a ResourceSlice +get available resources ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiCreateResourceSliceRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiCreateResourceSliceRequest = { - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - allNodes: true, - devices: [ - { - basic: { - allNodes: true, - attributes: { - "key": { - bool: true, - _int: 1, - string: "string_example", - version: "version_example", - }, - }, - capacity: { - "key": "key_example", - }, - consumesCounters: [ - { - counterSet: "counterSet_example", - counters: { - "key": { - value: "value_example", - }, - }, - }, - ], - nodeName: "nodeName_example", - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - taints: [ - { - effect: "effect_example", - key: "key_example", - timeAdded: new Date('1970-01-01T00:00:00.00Z'), - value: "value_example", - }, - ], - }, - name: "name_example", - }, - ], - driver: "driver_example", - nodeName: "nodeName_example", - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - perDeviceNodeSelection: true, - pool: { - generation: 1, - name: "name_example", - resourceSliceCount: 1, - }, - sharedCounters: [ - { - counters: { - "key": { - value: "value_example", - }, - }, - name: "name_example", - }, - ], - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; +const request = {}; -const data = await apiInstance.createResourceSlice(request); +const data = await apiInstance.getAPIResources(request); console.log('API called successfully. Returned data:', data); ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceSlice**| | - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined +This endpoint does not need any parameter. ### Return type -**V1alpha3ResourceSlice** +**V1APIResourceList** ### Authorization @@ -1038,2974 +391,51 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionDeviceClass** -> V1Status deleteCollectionDeviceClass() +# **listDeviceTaintRule** +> V1alpha3DeviceTaintRuleList listDeviceTaintRule() -delete collection of DeviceClass +list or watch objects of kind DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteCollectionDeviceClassRequest } from ''; +import type { ResourceV1alpha3ApiListDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiDeleteCollectionDeviceClassRequest = { +const request: ResourceV1alpha3ApiListDeviceTaintRuleRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteCollectionDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - - -### Return type - -**V1Status** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteCollectionDeviceTaintRule** -> V1Status deleteCollectionDeviceTaintRule() - -delete collection of DeviceTaintRule - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest = { - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteCollectionDeviceTaintRule(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - - -### Return type - -**V1Status** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteCollectionNamespacedResourceClaim** -> V1Status deleteCollectionNamespacedResourceClaim() - -delete collection of ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteCollectionNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - - -### Return type - -**V1Status** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteCollectionNamespacedResourceClaimTemplate** -> V1Status deleteCollectionNamespacedResourceClaimTemplate() - -delete collection of ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimTemplateRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteCollectionNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - - -### Return type - -**V1Status** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteCollectionResourceSlice** -> V1Status deleteCollectionResourceSlice() - -delete collection of ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteCollectionResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteCollectionResourceSliceRequest = { - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteCollectionResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - - -### Return type - -**V1Status** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteDeviceClass** -> V1alpha3DeviceClass deleteDeviceClass() - -delete a DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteDeviceClassRequest = { - // name of the DeviceClass - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the DeviceClass | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClass** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteDeviceTaintRule** -> V1alpha3DeviceTaintRule deleteDeviceTaintRule() - -delete a DeviceTaintRule - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest = { - // name of the DeviceTaintRule - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteDeviceTaintRule(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceTaintRule** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteNamespacedResourceClaim** -> V1alpha3ResourceClaim deleteNamespacedResourceClaim() - -delete a ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteNamespacedResourceClaimRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate deleteNamespacedResourceClaimTemplate() - -delete a ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteNamespacedResourceClaimTemplateRequest = { - // name of the ResourceClaimTemplate - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplate** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteResourceSlice** -> V1alpha3ResourceSlice deleteResourceSlice() - -delete a ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteResourceSliceRequest = { - // name of the ResourceSlice - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ResourceSlice | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceSlice** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **getAPIResources** -> V1APIResourceList getAPIResources() - -get available resources - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request = {}; - -const data = await apiInstance.getAPIResources(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters -This endpoint does not need any parameter. - - -### Return type - -**V1APIResourceList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listDeviceClass** -> V1alpha3DeviceClassList listDeviceClass() - -list or watch objects of kind DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListDeviceClassRequest = { - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClassList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listDeviceTaintRule** -> V1alpha3DeviceTaintRuleList listDeviceTaintRule() - -list or watch objects of kind DeviceTaintRule - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListDeviceTaintRuleRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListDeviceTaintRuleRequest = { - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listDeviceTaintRule(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceTaintRuleList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listNamespacedResourceClaim** -> V1alpha3ResourceClaimList listNamespacedResourceClaim() - -list or watch objects of kind ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListNamespacedResourceClaimRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplateList listNamespacedResourceClaimTemplate() - -list or watch objects of kind ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListNamespacedResourceClaimTemplateRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplateList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listResourceClaimForAllNamespaces** -> V1alpha3ResourceClaimList listResourceClaimForAllNamespaces() - -list or watch objects of kind ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListResourceClaimForAllNamespacesRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListResourceClaimForAllNamespacesRequest = { - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listResourceClaimForAllNamespaces(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listResourceClaimTemplateForAllNamespaces** -> V1alpha3ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces() - -list or watch objects of kind ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListResourceClaimTemplateForAllNamespacesRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListResourceClaimTemplateForAllNamespacesRequest = { - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listResourceClaimTemplateForAllNamespaces(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplateList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listResourceSlice** -> V1alpha3ResourceSliceList listResourceSlice() - -list or watch objects of kind ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListResourceSliceRequest = { - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceSliceList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchDeviceClass** -> V1alpha3DeviceClass patchDeviceClass(body) - -partially update the specified DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchDeviceClassRequest = { - // name of the DeviceClass - name: "name_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the DeviceClass | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClass** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchDeviceTaintRule** -> V1alpha3DeviceTaintRule patchDeviceTaintRule(body) - -partially update the specified DeviceTaintRule - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchDeviceTaintRuleRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchDeviceTaintRuleRequest = { - // name of the DeviceTaintRule - name: "name_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchDeviceTaintRule(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceTaintRule** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchNamespacedResourceClaim** -> V1alpha3ResourceClaim patchNamespacedResourceClaim(body) - -partially update the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchNamespacedResourceClaimRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchNamespacedResourceClaimStatus** -> V1alpha3ResourceClaim patchNamespacedResourceClaimStatus(body) - -partially update status of the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchNamespacedResourceClaimStatusRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchNamespacedResourceClaimStatusRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchNamespacedResourceClaimStatus(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate patchNamespacedResourceClaimTemplate(body) - -partially update the specified ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchNamespacedResourceClaimTemplateRequest = { - // name of the ResourceClaimTemplate - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplate** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchResourceSlice** -> V1alpha3ResourceSlice patchResourceSlice(body) - -partially update the specified ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchResourceSliceRequest = { - // name of the ResourceSlice - name: "name_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ResourceSlice | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceSlice** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readDeviceClass** -> V1alpha3DeviceClass readDeviceClass() - -read the specified DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadDeviceClassRequest = { - // name of the DeviceClass - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the DeviceClass | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClass** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readDeviceTaintRule** -> V1alpha3DeviceTaintRule readDeviceTaintRule() - -read the specified DeviceTaintRule - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadDeviceTaintRuleRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadDeviceTaintRuleRequest = { - // name of the DeviceTaintRule - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readDeviceTaintRule(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceTaintRule** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readNamespacedResourceClaim** -> V1alpha3ResourceClaim readNamespacedResourceClaim() - -read the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadNamespacedResourceClaimRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readNamespacedResourceClaimStatus** -> V1alpha3ResourceClaim readNamespacedResourceClaimStatus() - -read status of the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadNamespacedResourceClaimStatusRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadNamespacedResourceClaimStatusRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readNamespacedResourceClaimStatus(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate readNamespacedResourceClaimTemplate() - -read the specified ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadNamespacedResourceClaimTemplateRequest = { - // name of the ResourceClaimTemplate - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplate** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readResourceSlice** -> V1alpha3ResourceSlice readResourceSlice() - -read the specified ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadResourceSliceRequest = { - // name of the ResourceSlice - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ResourceSlice | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceSlice** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **replaceDeviceClass** -> V1alpha3DeviceClass replaceDeviceClass(body) - -replace the specified DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReplaceDeviceClassRequest = { - // name of the DeviceClass - name: "name_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - }, - ], - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; - -const data = await apiInstance.replaceDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3DeviceClass**| | - **name** | [**string**] | name of the DeviceClass | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClass** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **replaceDeviceTaintRule** -> V1alpha3DeviceTaintRule replaceDeviceTaintRule(body) - -replace the specified DeviceTaintRule - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest = { - // name of the DeviceTaintRule - name: "name_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - deviceSelector: { - device: "device_example", - deviceClassName: "deviceClassName_example", - driver: "driver_example", - pool: "pool_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - }, - taint: { - effect: "effect_example", - key: "key_example", - timeAdded: new Date('1970-01-01T00:00:00.00Z'), - value: "value_example", - }, - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; - -const data = await apiInstance.replaceDeviceTaintRule(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3DeviceTaintRule**| | - **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceTaintRule** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **replaceNamespacedResourceClaim** -> V1alpha3ResourceClaim replaceNamespacedResourceClaim(body) - -replace the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReplaceNamespacedResourceClaimRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - firstAvailable: [ - { - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - }, - status: { - allocation: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - source: "source_example", - }, - ], - results: [ - { - adminAccess: true, - device: "device_example", - driver: "driver_example", - pool: "pool_example", - request: "request_example", - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - }, - devices: [ - { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - data: {}, - device: "device_example", - driver: "driver_example", - networkData: { - hardwareAddress: "hardwareAddress_example", - interfaceName: "interfaceName_example", - ips: [ - "ips_example", - ], - }, - pool: "pool_example", - }, - ], - reservedFor: [ - { - apiGroup: "apiGroup_example", - name: "name_example", - resource: "resource_example", - uid: "uid_example", - }, - ], - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, }; -const data = await apiInstance.replaceNamespacedResourceClaim(request); +const data = await apiInstance.listDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -4014,18 +444,22 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaim**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined ### Return type -**V1alpha3ResourceClaim** +**V1alpha3DeviceTaintRuleList** ### Authorization @@ -4034,261 +468,50 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceNamespacedResourceClaimStatus** -> V1alpha3ResourceClaim replaceNamespacedResourceClaimStatus(body) +# **patchDeviceTaintRule** +> V1alpha3DeviceTaintRule patchDeviceTaintRule(body) -replace status of the specified ResourceClaim +partially update the specified DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceNamespacedResourceClaimStatusRequest } from ''; +import type { ResourceV1alpha3ApiPatchDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiReplaceNamespacedResourceClaimStatusRequest = { - // name of the ResourceClaim +const request: ResourceV1alpha3ApiPatchDeviceTaintRuleRequest = { + // name of the DeviceTaintRule name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - firstAvailable: [ - { - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - }, - status: { - allocation: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - source: "source_example", - }, - ], - results: [ - { - adminAccess: true, - device: "device_example", - driver: "driver_example", - pool: "pool_example", - request: "request_example", - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - }, - devices: [ - { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - data: {}, - device: "device_example", - driver: "driver_example", - networkData: { - hardwareAddress: "hardwareAddress_example", - interfaceName: "interfaceName_example", - ips: [ - "ips_example", - ], - }, - pool: "pool_example", - }, - ], - reservedFor: [ - { - apiGroup: "apiGroup_example", - name: "name_example", - resource: "resource_example", - uid: "uid_example", - }, - ], - }, - }, + body: {}, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) fieldManager: "fieldManager_example", // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, }; -const data = await apiInstance.replaceNamespacedResourceClaimStatus(request); +const data = await apiInstance.patchDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -4297,18 +520,18 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaim**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **body** | **any**| | + **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined ### Return type -**V1alpha3ResourceClaim** +**V1alpha3DeviceTaintRule** ### Authorization @@ -4316,7 +539,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor @@ -4329,200 +552,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(body) +# **readDeviceTaintRule** +> V1alpha3DeviceTaintRule readDeviceTaintRule() -replace the specified ResourceClaimTemplate +read the specified DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceNamespacedResourceClaimTemplateRequest } from ''; +import type { ResourceV1alpha3ApiReadDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiReplaceNamespacedResourceClaimTemplateRequest = { - // name of the ResourceClaimTemplate +const request: ResourceV1alpha3ApiReadDeviceTaintRuleRequest = { + // name of the DeviceTaintRule name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - firstAvailable: [ - { - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - tolerations: [ - { - effect: "effect_example", - key: "key_example", - operator: "operator_example", - tolerationSeconds: 1, - value: "value_example", - }, - ], - }, - ], - }, - }, - }, - }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.replaceNamespacedResourceClaimTemplate(request); +const data = await apiInstance.readDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -4531,18 +583,13 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaimTemplate**| | - **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined ### Return type -**V1alpha3ResourceClaimTemplate** +**V1alpha3DeviceTaintRule** ### Authorization @@ -4558,28 +605,27 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceResourceSlice** -> V1alpha3ResourceSlice replaceResourceSlice(body) +# **replaceDeviceTaintRule** +> V1alpha3DeviceTaintRule replaceDeviceTaintRule(body) -replace the specified ResourceSlice +replace the specified DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceResourceSliceRequest } from ''; +import type { ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiReplaceResourceSliceRequest = { - // name of the ResourceSlice +const request: ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest = { + // name of the DeviceTaintRule name: "name_example", body: { @@ -4628,111 +674,25 @@ const request: ResourceV1alpha3ApiReplaceResourceSliceRequest = { uid: "uid_example", }, spec: { - allNodes: true, - devices: [ - { - basic: { - allNodes: true, - attributes: { - "key": { - bool: true, - _int: 1, - string: "string_example", - version: "version_example", - }, - }, - capacity: { - "key": "key_example", - }, - consumesCounters: [ - { - counterSet: "counterSet_example", - counters: { - "key": { - value: "value_example", - }, - }, - }, - ], - nodeName: "nodeName_example", - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - taints: [ - { - effect: "effect_example", - key: "key_example", - timeAdded: new Date('1970-01-01T00:00:00.00Z'), - value: "value_example", - }, - ], - }, - name: "name_example", - }, - ], - driver: "driver_example", - nodeName: "nodeName_example", - nodeSelector: { - nodeSelectorTerms: [ + deviceSelector: { + device: "device_example", + deviceClassName: "deviceClassName_example", + driver: "driver_example", + pool: "pool_example", + selectors: [ { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], + cel: { + expression: "expression_example", + }, }, ], }, - perDeviceNodeSelection: true, - pool: { - generation: 1, - name: "name_example", - resourceSliceCount: 1, + taint: { + effect: "effect_example", + key: "key_example", + timeAdded: new Date('1970-01-01T00:00:00.00Z'), + value: "value_example", }, - sharedCounters: [ - { - counters: { - "key": { - value: "value_example", - }, - }, - name: "name_example", - }, - ], }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -4745,7 +705,7 @@ const request: ResourceV1alpha3ApiReplaceResourceSliceRequest = { fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.replaceResourceSlice(request); +const data = await apiInstance.replaceDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -4754,8 +714,8 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceSlice**| | - **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **body** | **V1alpha3DeviceTaintRule**| | + **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -4764,7 +724,7 @@ Name | Type | Description | Notes ### Return type -**V1alpha3ResourceSlice** +**V1alpha3DeviceTaintRule** ### Authorization diff --git a/src/gen/ResourceV1beta1Api.md b/src/gen/ResourceV1beta1Api.md index b871ce574b..381e04c42c 100644 --- a/src/gen/ResourceV1beta1Api.md +++ b/src/gen/ResourceV1beta1Api.md @@ -111,6 +111,7 @@ const request: ResourceV1beta1ApiCreateDeviceClassRequest = { }, }, ], + extendedResourceName: "extendedResourceName_example", selectors: [ { cel: { @@ -249,6 +250,7 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -259,11 +261,21 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -308,6 +320,7 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -324,10 +337,20 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", tolerations: [ { effect: "effect_example", @@ -388,6 +411,7 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -573,6 +597,7 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest = ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -583,11 +608,21 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest = { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -751,6 +786,7 @@ const request: ResourceV1beta1ApiCreateResourceSliceRequest = { { basic: { allNodes: true, + allowMultipleAllocations: true, attributes: { "key": { bool: true, @@ -759,8 +795,26 @@ const request: ResourceV1beta1ApiCreateResourceSliceRequest = { version: "version_example", }, }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, capacity: { "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, value: "value_example", }, }, @@ -3015,6 +3069,7 @@ const request: ResourceV1beta1ApiReplaceDeviceClassRequest = { }, }, ], + extendedResourceName: "extendedResourceName_example", selectors: [ { cel: { @@ -3155,6 +3210,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3165,11 +3221,21 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -3214,6 +3280,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -3230,10 +3297,20 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", tolerations: [ { effect: "effect_example", @@ -3294,6 +3371,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -3438,6 +3516,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3448,11 +3527,21 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -3497,6 +3586,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -3513,10 +3603,20 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", tolerations: [ { effect: "effect_example", @@ -3577,6 +3677,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -3764,6 +3865,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest = ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3774,11 +3876,21 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest = { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -3944,6 +4056,7 @@ const request: ResourceV1beta1ApiReplaceResourceSliceRequest = { { basic: { allNodes: true, + allowMultipleAllocations: true, attributes: { "key": { bool: true, @@ -3952,8 +4065,26 @@ const request: ResourceV1beta1ApiReplaceResourceSliceRequest = { version: "version_example", }, }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, capacity: { "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, value: "value_example", }, }, diff --git a/src/gen/ResourceV1beta2Api.md b/src/gen/ResourceV1beta2Api.md index e2dee5cdd7..c6fec541f3 100644 --- a/src/gen/ResourceV1beta2Api.md +++ b/src/gen/ResourceV1beta2Api.md @@ -111,6 +111,7 @@ const request: ResourceV1beta2ApiCreateDeviceClassRequest = { }, }, ], + extendedResourceName: "extendedResourceName_example", selectors: [ { cel: { @@ -249,6 +250,7 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -260,6 +262,11 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimRequest = { exactly: { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", selectors: [ @@ -282,6 +289,11 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimRequest = { firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -310,6 +322,7 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimRequest = { }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -326,10 +339,20 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", tolerations: [ { effect: "effect_example", @@ -390,6 +413,7 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -575,6 +599,7 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest = ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -586,6 +611,11 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest = exactly: { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", selectors: [ @@ -608,6 +638,11 @@ const request: ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest = firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -754,6 +789,7 @@ const request: ResourceV1beta2ApiCreateResourceSliceRequest = { devices: [ { allNodes: true, + allowMultipleAllocations: true, attributes: { "key": { bool: true, @@ -762,8 +798,26 @@ const request: ResourceV1beta2ApiCreateResourceSliceRequest = { version: "version_example", }, }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, capacity: { "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, value: "value_example", }, }, @@ -3017,6 +3071,7 @@ const request: ResourceV1beta2ApiReplaceDeviceClassRequest = { }, }, ], + extendedResourceName: "extendedResourceName_example", selectors: [ { cel: { @@ -3157,6 +3212,7 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3168,6 +3224,11 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest = { exactly: { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", selectors: [ @@ -3190,6 +3251,11 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest = { firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -3218,6 +3284,7 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest = { }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -3234,10 +3301,20 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", tolerations: [ { effect: "effect_example", @@ -3298,6 +3375,7 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -3442,6 +3520,7 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3453,6 +3532,11 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest = { exactly: { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", selectors: [ @@ -3475,6 +3559,11 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest = { firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -3503,6 +3592,7 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest = { }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -3519,10 +3609,20 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", tolerations: [ { effect: "effect_example", @@ -3583,6 +3683,7 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -3770,6 +3871,7 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest = ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3781,6 +3883,11 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest = exactly: { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", selectors: [ @@ -3803,6 +3910,11 @@ const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest = firstAvailable: [ { allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", name: "name_example", @@ -3951,6 +4063,7 @@ const request: ResourceV1beta2ApiReplaceResourceSliceRequest = { devices: [ { allNodes: true, + allowMultipleAllocations: true, attributes: { "key": { bool: true, @@ -3959,8 +4072,26 @@ const request: ResourceV1beta2ApiReplaceResourceSliceRequest = { version: "version_example", }, }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, capacity: { "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, value: "value_example", }, }, diff --git a/src/gen/StorageV1Api.md b/src/gen/StorageV1Api.md index 7f27fda802..83ffbcaa60 100644 --- a/src/gen/StorageV1Api.md +++ b/src/gen/StorageV1Api.md @@ -9,6 +9,7 @@ Method | HTTP request | Description [**createNamespacedCSIStorageCapacity**](StorageV1Api.md#createNamespacedCSIStorageCapacity) | **POST** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | [**createStorageClass**](StorageV1Api.md#createStorageClass) | **POST** /apis/storage.k8s.io/v1/storageclasses | [**createVolumeAttachment**](StorageV1Api.md#createVolumeAttachment) | **POST** /apis/storage.k8s.io/v1/volumeattachments | +[**createVolumeAttributesClass**](StorageV1Api.md#createVolumeAttributesClass) | **POST** /apis/storage.k8s.io/v1/volumeattributesclasses | [**deleteCSIDriver**](StorageV1Api.md#deleteCSIDriver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers/{name} | [**deleteCSINode**](StorageV1Api.md#deleteCSINode) | **DELETE** /apis/storage.k8s.io/v1/csinodes/{name} | [**deleteCollectionCSIDriver**](StorageV1Api.md#deleteCollectionCSIDriver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers | @@ -16,9 +17,11 @@ Method | HTTP request | Description [**deleteCollectionNamespacedCSIStorageCapacity**](StorageV1Api.md#deleteCollectionNamespacedCSIStorageCapacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | [**deleteCollectionStorageClass**](StorageV1Api.md#deleteCollectionStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses | [**deleteCollectionVolumeAttachment**](StorageV1Api.md#deleteCollectionVolumeAttachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments | +[**deleteCollectionVolumeAttributesClass**](StorageV1Api.md#deleteCollectionVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1/volumeattributesclasses | [**deleteNamespacedCSIStorageCapacity**](StorageV1Api.md#deleteNamespacedCSIStorageCapacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**deleteStorageClass**](StorageV1Api.md#deleteStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses/{name} | [**deleteVolumeAttachment**](StorageV1Api.md#deleteVolumeAttachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments/{name} | +[**deleteVolumeAttributesClass**](StorageV1Api.md#deleteVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | [**getAPIResources**](StorageV1Api.md#getAPIResources) | **GET** /apis/storage.k8s.io/v1/ | [**listCSIDriver**](StorageV1Api.md#listCSIDriver) | **GET** /apis/storage.k8s.io/v1/csidrivers | [**listCSINode**](StorageV1Api.md#listCSINode) | **GET** /apis/storage.k8s.io/v1/csinodes | @@ -26,24 +29,28 @@ Method | HTTP request | Description [**listNamespacedCSIStorageCapacity**](StorageV1Api.md#listNamespacedCSIStorageCapacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | [**listStorageClass**](StorageV1Api.md#listStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses | [**listVolumeAttachment**](StorageV1Api.md#listVolumeAttachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments | +[**listVolumeAttributesClass**](StorageV1Api.md#listVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses | [**patchCSIDriver**](StorageV1Api.md#patchCSIDriver) | **PATCH** /apis/storage.k8s.io/v1/csidrivers/{name} | [**patchCSINode**](StorageV1Api.md#patchCSINode) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name} | [**patchNamespacedCSIStorageCapacity**](StorageV1Api.md#patchNamespacedCSIStorageCapacity) | **PATCH** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**patchStorageClass**](StorageV1Api.md#patchStorageClass) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | [**patchVolumeAttachment**](StorageV1Api.md#patchVolumeAttachment) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name} | [**patchVolumeAttachmentStatus**](StorageV1Api.md#patchVolumeAttachmentStatus) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | +[**patchVolumeAttributesClass**](StorageV1Api.md#patchVolumeAttributesClass) | **PATCH** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | [**readCSIDriver**](StorageV1Api.md#readCSIDriver) | **GET** /apis/storage.k8s.io/v1/csidrivers/{name} | [**readCSINode**](StorageV1Api.md#readCSINode) | **GET** /apis/storage.k8s.io/v1/csinodes/{name} | [**readNamespacedCSIStorageCapacity**](StorageV1Api.md#readNamespacedCSIStorageCapacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**readStorageClass**](StorageV1Api.md#readStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | [**readVolumeAttachment**](StorageV1Api.md#readVolumeAttachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name} | [**readVolumeAttachmentStatus**](StorageV1Api.md#readVolumeAttachmentStatus) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | +[**readVolumeAttributesClass**](StorageV1Api.md#readVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | [**replaceCSIDriver**](StorageV1Api.md#replaceCSIDriver) | **PUT** /apis/storage.k8s.io/v1/csidrivers/{name} | [**replaceCSINode**](StorageV1Api.md#replaceCSINode) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name} | [**replaceNamespacedCSIStorageCapacity**](StorageV1Api.md#replaceNamespacedCSIStorageCapacity) | **PUT** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**replaceStorageClass**](StorageV1Api.md#replaceStorageClass) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | [**replaceVolumeAttachment**](StorageV1Api.md#replaceVolumeAttachment) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name} | [**replaceVolumeAttachmentStatus**](StorageV1Api.md#replaceVolumeAttachmentStatus) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | +[**replaceVolumeAttributesClass**](StorageV1Api.md#replaceVolumeAttributesClass) | **PUT** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | # **createCSIDriver** @@ -957,6 +964,123 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createVolumeAttributesClass** +> V1VolumeAttributesClass createVolumeAttributesClass(body) + +create a VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiCreateVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiCreateVolumeAttributesClassRequest = { + + body: { + apiVersion: "apiVersion_example", + driverName: "driverName_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + parameters: { + "key": "key_example", + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1VolumeAttributesClass**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -1657,6 +1781,116 @@ console.log('API called successfully. Returned data:', data); ``` +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionVolumeAttributesClass** +> V1Status deleteCollectionVolumeAttributesClass() + +delete collection of VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiDeleteCollectionVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiDeleteCollectionVolumeAttributesClassRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + ### Parameters Name | Type | Description | Notes @@ -1964,6 +2198,96 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteVolumeAttributesClass** +> V1VolumeAttributesClass deleteVolumeAttributesClass() + +delete a VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiDeleteVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiDeleteVolumeAttributesClassRequest = { + // name of the VolumeAttributesClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the VolumeAttributesClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -2275,21 +2599,106 @@ Name | Type | Description | Notes # **listNamespacedCSIStorageCapacity** > V1CSIStorageCapacityList listNamespacedCSIStorageCapacity() -list or watch objects of kind CSIStorageCapacity +list or watch objects of kind CSIStorageCapacity + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiListNamespacedCSIStorageCapacityRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiListNamespacedCSIStorageCapacityRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedCSIStorageCapacity(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1CSIStorageCapacityList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listStorageClass** +> V1StorageClassList listStorageClass() + +list or watch objects of kind StorageClass ### Example ```typescript import { createConfiguration, StorageV1Api } from ''; -import type { StorageV1ApiListNamespacedCSIStorageCapacityRequest } from ''; +import type { StorageV1ApiListStorageClassRequest } from ''; const configuration = createConfiguration(); const apiInstance = new StorageV1Api(configuration); -const request: StorageV1ApiListNamespacedCSIStorageCapacityRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: StorageV1ApiListStorageClassRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -2314,7 +2723,7 @@ const request: StorageV1ApiListNamespacedCSIStorageCapacityRequest = { watch: true, }; -const data = await apiInstance.listNamespacedCSIStorageCapacity(request); +const data = await apiInstance.listStorageClass(request); console.log('API called successfully. Returned data:', data); ``` @@ -2323,7 +2732,6 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined @@ -2339,7 +2747,7 @@ Name | Type | Description | Notes ### Return type -**V1CSIStorageCapacityList** +**V1StorageClassList** ### Authorization @@ -2359,22 +2767,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listStorageClass** -> V1StorageClassList listStorageClass() +# **listVolumeAttachment** +> V1VolumeAttachmentList listVolumeAttachment() -list or watch objects of kind StorageClass +list or watch objects of kind VolumeAttachment ### Example ```typescript import { createConfiguration, StorageV1Api } from ''; -import type { StorageV1ApiListStorageClassRequest } from ''; +import type { StorageV1ApiListVolumeAttachmentRequest } from ''; const configuration = createConfiguration(); const apiInstance = new StorageV1Api(configuration); -const request: StorageV1ApiListStorageClassRequest = { +const request: StorageV1ApiListVolumeAttachmentRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -2399,7 +2807,7 @@ const request: StorageV1ApiListStorageClassRequest = { watch: true, }; -const data = await apiInstance.listStorageClass(request); +const data = await apiInstance.listVolumeAttachment(request); console.log('API called successfully. Returned data:', data); ``` @@ -2423,7 +2831,7 @@ Name | Type | Description | Notes ### Return type -**V1StorageClassList** +**V1VolumeAttachmentList** ### Authorization @@ -2443,22 +2851,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listVolumeAttachment** -> V1VolumeAttachmentList listVolumeAttachment() +# **listVolumeAttributesClass** +> V1VolumeAttributesClassList listVolumeAttributesClass() -list or watch objects of kind VolumeAttachment +list or watch objects of kind VolumeAttributesClass ### Example ```typescript import { createConfiguration, StorageV1Api } from ''; -import type { StorageV1ApiListVolumeAttachmentRequest } from ''; +import type { StorageV1ApiListVolumeAttributesClassRequest } from ''; const configuration = createConfiguration(); const apiInstance = new StorageV1Api(configuration); -const request: StorageV1ApiListVolumeAttachmentRequest = { +const request: StorageV1ApiListVolumeAttributesClassRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -2483,7 +2891,7 @@ const request: StorageV1ApiListVolumeAttachmentRequest = { watch: true, }; -const data = await apiInstance.listVolumeAttachment(request); +const data = await apiInstance.listVolumeAttributesClass(request); console.log('API called successfully. Returned data:', data); ``` @@ -2507,7 +2915,7 @@ Name | Type | Description | Notes ### Return type -**V1VolumeAttachmentList** +**V1VolumeAttributesClassList** ### Authorization @@ -2959,6 +3367,79 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchVolumeAttributesClass** +> V1VolumeAttributesClass patchVolumeAttributesClass(body) + +partially update the specified VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiPatchVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiPatchVolumeAttributesClassRequest = { + // name of the VolumeAttributesClass + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the VolumeAttributesClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -3305,6 +3786,63 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readVolumeAttributesClass** +> V1VolumeAttributesClass readVolumeAttributesClass() + +read the specified VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiReadVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiReadVolumeAttributesClassRequest = { + // name of the VolumeAttributesClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the VolumeAttributesClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -4641,4 +5179,123 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) +# **replaceVolumeAttributesClass** +> V1VolumeAttributesClass replaceVolumeAttributesClass(body) + +replace the specified VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiReplaceVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiReplaceVolumeAttributesClassRequest = { + // name of the VolumeAttributesClass + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + driverName: "driverName_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + parameters: { + "key": "key_example", + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1VolumeAttributesClass**| | + **name** | [**string**] | name of the VolumeAttributesClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + diff --git a/src/gen/apis/AdmissionregistrationV1beta1Api.ts b/src/gen/apis/AdmissionregistrationV1beta1Api.ts index 17da34a9e7..c2cc1c5bbc 100644 --- a/src/gen/apis/AdmissionregistrationV1beta1Api.ts +++ b/src/gen/apis/AdmissionregistrationV1beta1Api.ts @@ -13,10 +13,10 @@ import {SecurityAuthentication} from '../auth/auth.js'; import { V1APIResourceList } from '../models/V1APIResourceList.js'; import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; import { V1Status } from '../models/V1Status.js'; -import { V1beta1ValidatingAdmissionPolicy } from '../models/V1beta1ValidatingAdmissionPolicy.js'; -import { V1beta1ValidatingAdmissionPolicyBinding } from '../models/V1beta1ValidatingAdmissionPolicyBinding.js'; -import { V1beta1ValidatingAdmissionPolicyBindingList } from '../models/V1beta1ValidatingAdmissionPolicyBindingList.js'; -import { V1beta1ValidatingAdmissionPolicyList } from '../models/V1beta1ValidatingAdmissionPolicyList.js'; +import { V1beta1MutatingAdmissionPolicy } from '../models/V1beta1MutatingAdmissionPolicy.js'; +import { V1beta1MutatingAdmissionPolicyBinding } from '../models/V1beta1MutatingAdmissionPolicyBinding.js'; +import { V1beta1MutatingAdmissionPolicyBindingList } from '../models/V1beta1MutatingAdmissionPolicyBindingList.js'; +import { V1beta1MutatingAdmissionPolicyList } from '../models/V1beta1MutatingAdmissionPolicyList.js'; /** * no description @@ -24,19 +24,19 @@ import { V1beta1ValidatingAdmissionPolicyList } from '../models/V1beta1Validatin export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIRequestFactory { /** - * create a ValidatingAdmissionPolicy + * create a MutatingAdmissionPolicy * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async createValidatingAdmissionPolicy(body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async createMutatingAdmissionPolicy(body: V1beta1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "createValidatingAdmissionPolicy", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "createMutatingAdmissionPolicy", "body"); } @@ -45,7 +45,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -76,7 +76,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicy", ""), + ObjectSerializer.serialize(body, "V1beta1MutatingAdmissionPolicy", ""), contentType ); requestContext.setBody(serializedBody); @@ -97,19 +97,19 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * create a ValidatingAdmissionPolicyBinding + * create a MutatingAdmissionPolicyBinding * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async createValidatingAdmissionPolicyBinding(body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async createMutatingAdmissionPolicyBinding(body: V1beta1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "createValidatingAdmissionPolicyBinding", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "createMutatingAdmissionPolicyBinding", "body"); } @@ -118,7 +118,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -149,7 +149,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicyBinding", ""), + ObjectSerializer.serialize(body, "V1beta1MutatingAdmissionPolicyBinding", ""), contentType ); requestContext.setBody(serializedBody); @@ -170,7 +170,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * delete collection of ValidatingAdmissionPolicy + * delete collection of MutatingAdmissionPolicy * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -187,7 +187,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public async deleteCollectionValidatingAdmissionPolicy(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteCollectionMutatingAdmissionPolicy(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -206,7 +206,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -308,7 +308,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * delete collection of ValidatingAdmissionPolicyBinding + * delete collection of MutatingAdmissionPolicyBinding * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -325,7 +325,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public async deleteCollectionValidatingAdmissionPolicyBinding(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteCollectionMutatingAdmissionPolicyBinding(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -344,7 +344,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -446,8 +446,8 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * delete a ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy + * delete a MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. @@ -456,12 +456,12 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public async deleteValidatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteMutatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "deleteValidatingAdmissionPolicy", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "deleteMutatingAdmissionPolicy", "name"); } @@ -473,7 +473,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -536,8 +536,8 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * delete a ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding + * delete a MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. @@ -546,12 +546,12 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public async deleteValidatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteMutatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "deleteValidatingAdmissionPolicyBinding", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "deleteMutatingAdmissionPolicyBinding", "name"); } @@ -563,7 +563,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -655,7 +655,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * list or watch objects of kind ValidatingAdmissionPolicy + * list or watch objects of kind MutatingAdmissionPolicy * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -668,7 +668,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listValidatingAdmissionPolicy(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listMutatingAdmissionPolicy(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -683,7 +683,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -761,7 +761,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * list or watch objects of kind ValidatingAdmissionPolicyBinding + * list or watch objects of kind MutatingAdmissionPolicyBinding * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -774,7 +774,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listValidatingAdmissionPolicyBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listMutatingAdmissionPolicyBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -789,7 +789,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -867,8 +867,8 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * partially update the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy + * partially update the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -876,18 +876,18 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async patchValidatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async patchMutatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicy", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "patchMutatingAdmissionPolicy", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicy", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "patchMutatingAdmissionPolicy", "body"); } @@ -897,7 +897,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -965,8 +965,8 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * partially update the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding + * partially update the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -974,18 +974,18 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async patchValidatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async patchMutatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicyBinding", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "patchMutatingAdmissionPolicyBinding", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicyBinding", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "patchMutatingAdmissionPolicyBinding", "body"); } @@ -995,7 +995,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1063,120 +1063,22 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * partially update status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy - * @param body + * read the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async patchValidatingAdmissionPolicyStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async readMutatingAdmissionPolicy(name: string, pretty?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicyStatus", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicyStatus", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "readMutatingAdmissionPolicy", "name"); } - - - - // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readValidatingAdmissionPolicy(name: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "readValidatingAdmissionPolicy", "name"); - } - - - - // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1205,22 +1107,22 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * read the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding + * read the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public async readValidatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: Configuration): Promise { + public async readMutatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "readValidatingAdmissionPolicyBinding", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "readMutatingAdmissionPolicyBinding", "name"); } // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1249,70 +1151,26 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * read status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readValidatingAdmissionPolicyStatus(name: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "readValidatingAdmissionPolicyStatus", "name"); - } - - - - // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy + * replace the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceValidatingAdmissionPolicy(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceMutatingAdmissionPolicy(name: string, body: V1beta1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicy", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceMutatingAdmissionPolicy", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicy", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceMutatingAdmissionPolicy", "body"); } @@ -1321,7 +1179,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1353,7 +1211,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicy", ""), + ObjectSerializer.serialize(body, "V1beta1MutatingAdmissionPolicy", ""), contentType ); requestContext.setBody(serializedBody); @@ -1374,26 +1232,26 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * replace the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding + * replace the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceValidatingAdmissionPolicyBinding(name: string, body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceMutatingAdmissionPolicyBinding(name: string, body: V1beta1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicyBinding", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceMutatingAdmissionPolicyBinding", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicyBinding", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceMutatingAdmissionPolicyBinding", "body"); } @@ -1402,7 +1260,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1434,88 +1292,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicyBinding", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceValidatingAdmissionPolicyStatus(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicyStatus", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicyStatus", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicy", ""), + ObjectSerializer.serialize(body, "V1beta1MutatingAdmissionPolicyBinding", ""), contentType ); requestContext.setBody(serializedBody); @@ -1543,30 +1320,30 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to createValidatingAdmissionPolicy + * @params response Response returned by the server for a request to createMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async createValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async createMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1575,10 +1352,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1589,30 +1366,30 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to createValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to createMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async createValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async createMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1621,10 +1398,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1635,10 +1412,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteCollectionValidatingAdmissionPolicy + * @params response Response returned by the server for a request to deleteCollectionMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -1667,10 +1444,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteCollectionValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to deleteCollectionMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -1699,10 +1476,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteValidatingAdmissionPolicy + * @params response Response returned by the server for a request to deleteMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async deleteValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async deleteMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -1738,10 +1515,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to deleteMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async deleteValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async deleteMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -1809,48 +1586,16 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to listValidatingAdmissionPolicy - * @throws ApiException if the response code was not in [200, 299] - */ - public async listValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyList", "" - ) as V1beta1ValidatingAdmissionPolicyList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyList", "" - ) as V1beta1ValidatingAdmissionPolicyList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to listMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async listValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async listMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBindingList = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBindingList", "" - ) as V1beta1ValidatingAdmissionPolicyBindingList; + "V1beta1MutatingAdmissionPolicyList", "" + ) as V1beta1MutatingAdmissionPolicyList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1859,10 +1604,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBindingList = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBindingList", "" - ) as V1beta1ValidatingAdmissionPolicyBindingList; + "V1beta1MutatingAdmissionPolicyList", "" + ) as V1beta1MutatingAdmissionPolicyList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1873,23 +1618,16 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to patchValidatingAdmissionPolicy + * @params response Response returned by the server for a request to listMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async patchValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async listMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBindingList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBindingList", "" + ) as V1beta1MutatingAdmissionPolicyBindingList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1898,10 +1636,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBindingList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBindingList", "" + ) as V1beta1MutatingAdmissionPolicyBindingList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1912,23 +1650,23 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to patchValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to patchMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async patchValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async patchMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1937,10 +1675,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1951,23 +1689,23 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to patchValidatingAdmissionPolicyStatus + * @params response Response returned by the server for a request to patchMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async patchValidatingAdmissionPolicyStatusWithHttpInfo(response: ResponseContext): Promise> { + public async patchMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1976,10 +1714,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1990,16 +1728,16 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readValidatingAdmissionPolicy + * @params response Response returned by the server for a request to readMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async readValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async readMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -2008,10 +1746,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -2022,87 +1760,16 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to readMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async readValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async readMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to readValidatingAdmissionPolicyStatus - * @throws ApiException if the response code was not in [200, 299] - */ - public async readValidatingAdmissionPolicyStatusWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to replaceValidatingAdmissionPolicy - * @throws ApiException if the response code was not in [200, 299] - */ - public async replaceValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -2111,10 +1778,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -2125,23 +1792,23 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to replaceMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async replaceValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async replaceMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -2150,10 +1817,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -2164,23 +1831,23 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceValidatingAdmissionPolicyStatus + * @params response Response returned by the server for a request to replaceMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async replaceValidatingAdmissionPolicyStatusWithHttpInfo(response: ResponseContext): Promise> { + public async replaceMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -2189,10 +1856,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } diff --git a/src/gen/apis/CertificatesV1alpha1Api.ts b/src/gen/apis/CertificatesV1alpha1Api.ts index 95a92a3bd5..ba8a68aa6c 100644 --- a/src/gen/apis/CertificatesV1alpha1Api.ts +++ b/src/gen/apis/CertificatesV1alpha1Api.ts @@ -15,6 +15,8 @@ import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; import { V1Status } from '../models/V1Status.js'; import { V1alpha1ClusterTrustBundle } from '../models/V1alpha1ClusterTrustBundle.js'; import { V1alpha1ClusterTrustBundleList } from '../models/V1alpha1ClusterTrustBundleList.js'; +import { V1alpha1PodCertificateRequest } from '../models/V1alpha1PodCertificateRequest.js'; +import { V1alpha1PodCertificateRequestList } from '../models/V1alpha1PodCertificateRequestList.js'; /** * no description @@ -94,6 +96,87 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory return requestContext; } + /** + * create a PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createNamespacedPodCertificateRequest(namespace: string, body: V1alpha1PodCertificateRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "createNamespacedPodCertificateRequest", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "createNamespacedPodCertificateRequest", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1alpha1PodCertificateRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * delete a ClusterTrustBundle * @param name name of the ClusterTrustBundle @@ -323,51 +406,37 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } /** - * get available resources - */ - public async getAPIResources(_options?: Configuration): Promise { - let _config = _options || this.configuration; - - // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ClusterTrustBundle + * delete collection of PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + * @param body */ - public async listClusterTrustBundle(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async deleteCollectionNamespacedPodCertificateRequest(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "deleteCollectionNamespacedPodCertificateRequest", "namespace"); + } + + + + + + @@ -380,10 +449,11 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles'; + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -392,13 +462,13 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); } // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } // Query Params @@ -406,6 +476,16 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); } + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + // Query Params if (labelSelector !== undefined) { requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); @@ -416,6 +496,16 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); } + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + // Query Params if (resourceVersion !== undefined) { requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); @@ -436,11 +526,15 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); } - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -458,27 +552,29 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } /** - * partially update the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle - * @param body + * delete a PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body */ - public async patchClusterTrustBundle(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async deleteNamespacedPodCertificateRequest(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "patchClusterTrustBundle", "name"); + throw new RequiredError("CertificatesV1alpha1Api", "deleteNamespacedPodCertificateRequest", "name"); } - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "patchClusterTrustBundle", "body"); + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "deleteNamespacedPodCertificateRequest", "namespace"); } @@ -487,12 +583,15 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory + + // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -506,36 +605,31 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); } // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); } // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); } // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); + const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), contentType ); requestContext.setBody(serializedBody); @@ -556,33 +650,18 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } /** - * read the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * get available resources */ - public async readClusterTrustBundle(name: string, pretty?: string, _options?: Configuration): Promise { + public async getAPIResources(_options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "readClusterTrustBundle", "name"); - } - - - // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -600,26 +679,898 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } /** - * replace the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle - * @param body + * list or watch objects of kind ClusterTrustBundle * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async replaceClusterTrustBundle(name: string, body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async listClusterTrustBundle(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "replaceClusterTrustBundle", "name"); + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedPodCertificateRequest(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "listNamespacedPodCertificateRequest", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind PodCertificateRequest + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listPodCertificateRequestForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/podcertificaterequests'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchClusterTrustBundle(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchClusterTrustBundle", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchClusterTrustBundle", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedPodCertificateRequest(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequest", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequest", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequest", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update status of the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedPodCertificateRequestStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequestStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequestStatus", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequestStatus", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readClusterTrustBundle(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readClusterTrustBundle", "name"); + } + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedPodCertificateRequest(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readNamespacedPodCertificateRequest", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readNamespacedPodCertificateRequest", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read status of the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedPodCertificateRequestStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readNamespacedPodCertificateRequestStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readNamespacedPodCertificateRequestStatus", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceClusterTrustBundle(name: string, body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceClusterTrustBundle", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceClusterTrustBundle", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1alpha1ClusterTrustBundle", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedPodCertificateRequest(name: string, namespace: string, body: V1alpha1PodCertificateRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequest", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequest", "namespace"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "replaceClusterTrustBundle", "body"); + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequest", "body"); } @@ -628,8 +1579,9 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); @@ -660,7 +1612,96 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha1ClusterTrustBundle", ""), + ObjectSerializer.serialize(body, "V1alpha1PodCertificateRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace status of the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedPodCertificateRequestStatus(name: string, namespace: string, body: V1alpha1PodCertificateRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequestStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequestStatus", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequestStatus", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1alpha1PodCertificateRequest", ""), contentType ); requestContext.setBody(serializedBody); @@ -688,30 +1729,147 @@ export class CertificatesV1alpha1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to createClusterTrustBundle + * @params response Response returned by the server for a request to createClusterTrustBundle + * @throws ApiException if the response code was not in [200, 299] + */ + public async createClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1ClusterTrustBundle", "" + ) as V1alpha1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1ClusterTrustBundle", "" + ) as V1alpha1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1ClusterTrustBundle", "" + ) as V1alpha1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1ClusterTrustBundle", "" + ) as V1alpha1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async createNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteClusterTrustBundle + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionClusterTrustBundle * @throws ApiException if the response code was not in [200, 299] */ - public async createClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha1ClusterTrustBundle", "" - ) as V1alpha1ClusterTrustBundle; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha1ClusterTrustBundle", "" - ) as V1alpha1ClusterTrustBundle; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + const body: V1Status = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha1ClusterTrustBundle", "" - ) as V1alpha1ClusterTrustBundle; + "V1Status", "" + ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -720,10 +1878,10 @@ export class CertificatesV1alpha1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + const body: V1Status = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha1ClusterTrustBundle", "" - ) as V1alpha1ClusterTrustBundle; + "V1Status", "" + ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -734,10 +1892,10 @@ export class CertificatesV1alpha1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteClusterTrustBundle + * @params response Response returned by the server for a request to deleteCollectionNamespacedPodCertificateRequest * @throws ApiException if the response code was not in [200, 299] */ - public async deleteClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -746,13 +1904,6 @@ export class CertificatesV1alpha1ApiResponseProcessor { ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); } @@ -773,10 +1924,10 @@ export class CertificatesV1alpha1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteCollectionClusterTrustBundle + * @params response Response returned by the server for a request to deleteNamespacedPodCertificateRequest * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + public async deleteNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -785,6 +1936,13 @@ export class CertificatesV1alpha1ApiResponseProcessor { ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); } @@ -865,6 +2023,70 @@ export class CertificatesV1alpha1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async listNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequestList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequestList", "" + ) as V1alpha1PodCertificateRequestList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequestList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequestList", "" + ) as V1alpha1PodCertificateRequestList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listPodCertificateRequestForAllNamespaces + * @throws ApiException if the response code was not in [200, 299] + */ + public async listPodCertificateRequestForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequestList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequestList", "" + ) as V1alpha1PodCertificateRequestList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequestList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequestList", "" + ) as V1alpha1PodCertificateRequestList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -904,6 +2126,84 @@ export class CertificatesV1alpha1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedPodCertificateRequestStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedPodCertificateRequestStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -936,6 +2236,70 @@ export class CertificatesV1alpha1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedPodCertificateRequestStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedPodCertificateRequestStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -975,4 +2339,82 @@ export class CertificatesV1alpha1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedPodCertificateRequestStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedPodCertificateRequestStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + } diff --git a/src/gen/apis/ResourceV1Api.ts b/src/gen/apis/ResourceV1Api.ts new file mode 100644 index 0000000000..f88ea00c32 --- /dev/null +++ b/src/gen/apis/ResourceV1Api.ts @@ -0,0 +1,4396 @@ +// TODO: better import syntax? +import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.js'; +import {Configuration} from '../configuration.js'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http.js'; +import FormData from "form-data"; +import { URLSearchParams } from 'url'; +import {ObjectSerializer} from '../models/ObjectSerializer.js'; +import {ApiException} from './exception.js'; +import {canConsumeForm, isCodeInRange} from '../util.js'; +import {SecurityAuthentication} from '../auth/auth.js'; + + +import { ResourceV1ResourceClaim } from '../models/ResourceV1ResourceClaim.js'; +import { V1APIResourceList } from '../models/V1APIResourceList.js'; +import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; +import { V1DeviceClass } from '../models/V1DeviceClass.js'; +import { V1DeviceClassList } from '../models/V1DeviceClassList.js'; +import { V1ResourceClaimList } from '../models/V1ResourceClaimList.js'; +import { V1ResourceClaimTemplate } from '../models/V1ResourceClaimTemplate.js'; +import { V1ResourceClaimTemplateList } from '../models/V1ResourceClaimTemplateList.js'; +import { V1ResourceSlice } from '../models/V1ResourceSlice.js'; +import { V1ResourceSliceList } from '../models/V1ResourceSliceList.js'; +import { V1Status } from '../models/V1Status.js'; + +/** + * no description + */ +export class ResourceV1ApiRequestFactory extends BaseAPIRequestFactory { + + /** + * create a DeviceClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createDeviceClass(body: V1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "createDeviceClass", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeviceClass", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createNamespacedResourceClaim(namespace: string, body: ResourceV1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "createNamespacedResourceClaim", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "createNamespacedResourceClaim", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "ResourceV1ResourceClaim", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createNamespacedResourceClaimTemplate(namespace: string, body: V1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "createNamespacedResourceClaimTemplate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "createNamespacedResourceClaimTemplate", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ResourceClaimTemplate", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * create a ResourceSlice + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createResourceSlice(body: V1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "createResourceSlice", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ResourceSlice", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionDeviceClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionNamespacedResourceClaim(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "deleteCollectionNamespacedResourceClaim", "namespace"); + } + + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionNamespacedResourceClaimTemplate(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "deleteCollectionNamespacedResourceClaimTemplate", "namespace"); + } + + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionResourceSlice(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a DeviceClass + * @param name name of the DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "deleteDeviceClass", "name"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "deleteNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "deleteNamespacedResourceClaim", "namespace"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "deleteNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "deleteNamespacedResourceClaimTemplate", "namespace"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a ResourceSlice + * @param name name of the ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "deleteResourceSlice", "name"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * get available resources + */ + public async getAPIResources(_options?: Configuration): Promise { + let _config = _options || this.configuration; + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listDeviceClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedResourceClaim(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "listNamespacedResourceClaim", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedResourceClaimTemplate(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "listNamespacedResourceClaimTemplate", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaim + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listResourceClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceclaims'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaimTemplate + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceclaimtemplates'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listResourceSlice(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified DeviceClass + * @param name name of the DeviceClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchDeviceClass", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchDeviceClass", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaim", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaim", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimStatus", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimStatus", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimTemplate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimTemplate", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchResourceSlice", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchResourceSlice", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified DeviceClass + * @param name name of the DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readDeviceClass(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readDeviceClass", "name"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaim", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaimStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaimStatus", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaimTemplate", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ResourceSlice + * @param name name of the ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readResourceSlice(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readResourceSlice", "name"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified DeviceClass + * @param name name of the DeviceClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceDeviceClass(name: string, body: V1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceDeviceClass", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceDeviceClass", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeviceClass", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedResourceClaim(name: string, namespace: string, body: ResourceV1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaim", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaim", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "ResourceV1ResourceClaim", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: ResourceV1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimStatus", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimStatus", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "ResourceV1ResourceClaim", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimTemplate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimTemplate", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ResourceClaimTemplate", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ResourceSlice + * @param name name of the ResourceSlice + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceResourceSlice(name: string, body: V1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceResourceSlice", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceResourceSlice", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ResourceSlice", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + +} + +export class ResourceV1ApiResponseProcessor { + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async createDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async createNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async createNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async createResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAPIResources + * @throws ApiException if the response code was not in [200, 299] + */ + public async getAPIResourcesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1APIResourceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1APIResourceList", "" + ) as V1APIResourceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1APIResourceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1APIResourceList", "" + ) as V1APIResourceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async listDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClassList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClassList", "" + ) as V1DeviceClassList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClassList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClassList", "" + ) as V1DeviceClassList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async listNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimList", "" + ) as V1ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimList", "" + ) as V1ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async listNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplateList", "" + ) as V1ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplateList", "" + ) as V1ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listResourceClaimForAllNamespaces + * @throws ApiException if the response code was not in [200, 299] + */ + public async listResourceClaimForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimList", "" + ) as V1ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimList", "" + ) as V1ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listResourceClaimTemplateForAllNamespaces + * @throws ApiException if the response code was not in [200, 299] + */ + public async listResourceClaimTemplateForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplateList", "" + ) as V1ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplateList", "" + ) as V1ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async listResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSliceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSliceList", "" + ) as V1ResourceSliceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSliceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSliceList", "" + ) as V1ResourceSliceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedResourceClaimStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async readDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedResourceClaimStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async readResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedResourceClaimStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + +} diff --git a/src/gen/apis/ResourceV1alpha3Api.ts b/src/gen/apis/ResourceV1alpha3Api.ts index ca6af42586..23273d4715 100644 --- a/src/gen/apis/ResourceV1alpha3Api.ts +++ b/src/gen/apis/ResourceV1alpha3Api.ts @@ -13,16 +13,8 @@ import {SecurityAuthentication} from '../auth/auth.js'; import { V1APIResourceList } from '../models/V1APIResourceList.js'; import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; import { V1Status } from '../models/V1Status.js'; -import { V1alpha3DeviceClass } from '../models/V1alpha3DeviceClass.js'; -import { V1alpha3DeviceClassList } from '../models/V1alpha3DeviceClassList.js'; import { V1alpha3DeviceTaintRule } from '../models/V1alpha3DeviceTaintRule.js'; import { V1alpha3DeviceTaintRuleList } from '../models/V1alpha3DeviceTaintRuleList.js'; -import { V1alpha3ResourceClaim } from '../models/V1alpha3ResourceClaim.js'; -import { V1alpha3ResourceClaimList } from '../models/V1alpha3ResourceClaimList.js'; -import { V1alpha3ResourceClaimTemplate } from '../models/V1alpha3ResourceClaimTemplate.js'; -import { V1alpha3ResourceClaimTemplateList } from '../models/V1alpha3ResourceClaimTemplateList.js'; -import { V1alpha3ResourceSlice } from '../models/V1alpha3ResourceSlice.js'; -import { V1alpha3ResourceSliceList } from '../models/V1alpha3ResourceSliceList.js'; /** * no description @@ -30,19 +22,19 @@ import { V1alpha3ResourceSliceList } from '../models/V1alpha3ResourceSliceList.j export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { /** - * create a DeviceClass + * create a DeviceTaintRule * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async createDeviceClass(body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async createDeviceTaintRule(body: V1alpha3DeviceTaintRule, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createDeviceClass", "body"); + throw new RequiredError("ResourceV1alpha3Api", "createDeviceTaintRule", "body"); } @@ -51,7 +43,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses'; + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -82,7 +74,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3DeviceClass", ""), + ObjectSerializer.serialize(body, "V1alpha3DeviceTaintRule", ""), contentType ); requestContext.setBody(serializedBody); @@ -103,20 +95,35 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * create a DeviceTaintRule - * @param body + * delete collection of DeviceTaintRule * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body */ - public async createDeviceTaintRule(body: V1alpha3DeviceTaintRule, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async deleteCollectionDeviceTaintRule(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createDeviceTaintRule", "body"); - } + + + + + + + + + @@ -127,7 +134,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules'; // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -135,100 +142,69 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + // Query Params if (dryRun !== undefined) { requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); } // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); } - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3DeviceTaintRule", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); } - return requestContext; - } - - /** - * create a ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async createNamespacedResourceClaim(namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createNamespacedResourceClaim", "namespace"); + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); } - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createNamespacedResourceClaim", "body"); + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); } + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); } // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); } // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); } // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); } @@ -236,7 +212,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaim", ""), + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), contentType ); requestContext.setBody(serializedBody); @@ -257,27 +233,26 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * create a ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param body + * delete a DeviceTaintRule + * @param name name of the DeviceTaintRule * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body */ - public async createNamespacedResourceClaimTemplate(namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async deleteDeviceTaintRule(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createNamespacedResourceClaimTemplate", "namespace"); + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "deleteDeviceTaintRule", "name"); } - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createNamespacedResourceClaimTemplate", "body"); - } + @@ -285,11 +260,11 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -303,13 +278,23 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); } // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); } @@ -317,7 +302,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaimTemplate", ""), + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), contentType ); requestContext.setBody(serializedBody); @@ -338,62 +323,18 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * create a ResourceSlice - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * get available resources */ - public async createResourceSlice(body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async getAPIResources(_options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createResourceSlice", "body"); - } - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices'; + const localVarPath = '/apis/resource.k8s.io/v1alpha3/'; // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceSlice", ""), - contentType - ); - requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -411,24 +352,20 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete collection of DeviceClass + * list or watch objects of kind DeviceTaintRule * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async deleteCollectionDeviceClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async listDeviceTaintRule(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -442,15 +379,11 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses'; + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules'; // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -459,13 +392,13 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); } // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); } // Query Params @@ -473,16 +406,6 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); } - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - // Query Params if (labelSelector !== undefined) { requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); @@ -493,16 +416,6 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); } - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - // Query Params if (resourceVersion !== undefined) { requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); @@ -523,15 +436,11 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); } + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -549,34 +458,28 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete collection of DeviceTaintRule + * partially update the specified DeviceTaintRule + * @param name name of the DeviceTaintRule + * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async deleteCollectionDeviceTaintRule(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async patchDeviceTaintRule(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "patchDeviceTaintRule", "name"); + } - - - - - - + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "patchDeviceTaintRule", "body"); + } @@ -585,10 +488,11 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules'; + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -596,77 +500,42 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - // Query Params if (dryRun !== undefined) { requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); } // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); } // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); } // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + ObjectSerializer.serialize(body, "any", ""), contentType ); requestContext.setBody(serializedBody); @@ -687,54 +556,26 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete collection of ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects + * read the specified DeviceTaintRule + * @param name name of the DeviceTaintRule * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body */ - public async deleteCollectionNamespacedResourceClaim(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async readDeviceTaintRule(name: string, pretty?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteCollectionNamespacedResourceClaim", "namespace"); + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "readDeviceTaintRule", "name"); } - - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -742,80 +583,6 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -833,4071 +600,98 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete collection of ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects + * replace the specified DeviceTaintRule + * @param name name of the DeviceTaintRule + * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body - */ - public async deleteCollectionNamespacedResourceClaimTemplate(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteCollectionNamespacedResourceClaimTemplate", "namespace"); - } - - - - - - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete collection of ResourceSlice - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async deleteCollectionResourceSlice(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete a DeviceClass - * @param name name of the DeviceClass - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param body - */ - public async deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteDeviceClass", "name"); - } - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete a DeviceTaintRule - * @param name name of the DeviceTaintRule - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param body - */ - public async deleteDeviceTaintRule(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteDeviceTaintRule", "name"); - } - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete a ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param body - */ - public async deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async replaceDeviceTaintRule(name: string, body: V1alpha3DeviceTaintRule, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteNamespacedResourceClaim", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteNamespacedResourceClaim", "namespace"); - } - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete a ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param body - */ - public async deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteNamespacedResourceClaimTemplate", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteNamespacedResourceClaimTemplate", "namespace"); - } - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete a ResourceSlice - * @param name name of the ResourceSlice - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param body - */ - public async deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteResourceSlice", "name"); - } - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * get available resources - */ - public async getAPIResources(_options?: Configuration): Promise { - let _config = _options || this.configuration; - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind DeviceClass - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listDeviceClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind DeviceTaintRule - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listDeviceTaintRule(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listNamespacedResourceClaim(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "listNamespacedResourceClaim", "namespace"); - } - - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listNamespacedResourceClaimTemplate(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "listNamespacedResourceClaimTemplate", "namespace"); - } - - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceClaim - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listResourceClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceclaims'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceClaimTemplate - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceclaimtemplates'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceSlice - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listResourceSlice(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update the specified DeviceClass - * @param name name of the DeviceClass - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchDeviceClass", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchDeviceClass", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update the specified DeviceTaintRule - * @param name name of the DeviceTaintRule - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchDeviceTaintRule(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchDeviceTaintRule", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchDeviceTaintRule", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaim", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaim", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaim", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update status of the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimStatus", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimStatus", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimStatus", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimTemplate", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimTemplate", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimTemplate", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update the specified ResourceSlice - * @param name name of the ResourceSlice - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchResourceSlice", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchResourceSlice", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified DeviceClass - * @param name name of the DeviceClass - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readDeviceClass(name: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readDeviceClass", "name"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified DeviceTaintRule - * @param name name of the DeviceTaintRule - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readDeviceTaintRule(name: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readDeviceTaintRule", "name"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaim", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaim", "namespace"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read status of the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaimStatus", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaimStatus", "namespace"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaimTemplate", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaimTemplate", "namespace"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified ResourceSlice - * @param name name of the ResourceSlice - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readResourceSlice(name: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readResourceSlice", "name"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified DeviceClass - * @param name name of the DeviceClass - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceDeviceClass(name: string, body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceClass", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceClass", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3DeviceClass", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified DeviceTaintRule - * @param name name of the DeviceTaintRule - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceDeviceTaintRule(name: string, body: V1alpha3DeviceTaintRule, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceTaintRule", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceTaintRule", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3DeviceTaintRule", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceNamespacedResourceClaim(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaim", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaim", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaim", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaim", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace status of the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimStatus", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimStatus", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimStatus", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaim", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimTemplate", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimTemplate", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimTemplate", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaimTemplate", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified ResourceSlice - * @param name name of the ResourceSlice - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceResourceSlice(name: string, body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceResourceSlice", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceResourceSlice", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceSlice", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - -} - -export class ResourceV1alpha3ApiResponseProcessor { - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to createDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async createDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to createDeviceTaintRule - * @throws ApiException if the response code was not in [200, 299] - */ - public async createDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to createNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async createNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to createNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] - */ - public async createNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to createResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async createResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteCollectionDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteCollectionDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteCollectionDeviceTaintRule - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteCollectionDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteCollectionNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteCollectionResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteCollectionResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteDeviceTaintRule - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to getAPIResources - * @throws ApiException if the response code was not in [200, 299] - */ - public async getAPIResourcesWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1APIResourceList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1APIResourceList", "" - ) as V1APIResourceList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1APIResourceList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1APIResourceList", "" - ) as V1APIResourceList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async listDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClassList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClassList", "" - ) as V1alpha3DeviceClassList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClassList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClassList", "" - ) as V1alpha3DeviceClassList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listDeviceTaintRule - * @throws ApiException if the response code was not in [200, 299] - */ - public async listDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRuleList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRuleList", "" - ) as V1alpha3DeviceTaintRuleList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceTaintRuleList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRuleList", "" - ) as V1alpha3DeviceTaintRuleList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async listNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimList", "" - ) as V1alpha3ResourceClaimList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimList", "" - ) as V1alpha3ResourceClaimList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] - */ - public async listNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplateList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplateList", "" - ) as V1alpha3ResourceClaimTemplateList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplateList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplateList", "" - ) as V1alpha3ResourceClaimTemplateList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listResourceClaimForAllNamespaces - * @throws ApiException if the response code was not in [200, 299] - */ - public async listResourceClaimForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimList", "" - ) as V1alpha3ResourceClaimList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimList", "" - ) as V1alpha3ResourceClaimList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listResourceClaimTemplateForAllNamespaces - * @throws ApiException if the response code was not in [200, 299] - */ - public async listResourceClaimTemplateForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplateList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplateList", "" - ) as V1alpha3ResourceClaimTemplateList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplateList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplateList", "" - ) as V1alpha3ResourceClaimTemplateList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async listResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSliceList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSliceList", "" - ) as V1alpha3ResourceSliceList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSliceList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSliceList", "" - ) as V1alpha3ResourceSliceList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchDeviceTaintRule - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceTaintRule", "" - ) as V1alpha3DeviceTaintRule; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchNamespacedResourceClaimStatus - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceTaintRule", "name"); } - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceTaintRule", "body"); } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); } - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to readDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async readDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1alpha3DeviceTaintRule", ""), + contentType + ); + requestContext.setBody(serializedBody); - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + return requestContext; } +} + +export class ResourceV1alpha3ApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readDeviceTaintRule + * @params response Response returned by the server for a request to createDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async readDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { + public async createDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( @@ -4906,36 +700,18 @@ export class ResourceV1alpha3ApiResponseProcessor { ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha3DeviceTaintRule", "" ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to readNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async readNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -4944,10 +720,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -4958,16 +734,16 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readNamespacedResourceClaimStatus + * @params response Response returned by the server for a request to deleteCollectionDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + const body: V1Status = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1Status", "" + ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -4976,10 +752,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + const body: V1Status = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1Status", "" + ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -4990,16 +766,23 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readNamespacedResourceClaimTemplate + * @params response Response returned by the server for a request to deleteDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + public async deleteDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -5008,10 +791,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -5022,16 +805,16 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readResourceSlice + * @params response Response returned by the server for a request to getAPIResources * @throws ApiException if the response code was not in [200, 299] */ - public async readResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + public async getAPIResourcesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1APIResourceList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1APIResourceList", "" + ) as V1APIResourceList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -5040,10 +823,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1APIResourceList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1APIResourceList", "" + ) as V1APIResourceList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -5054,23 +837,16 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceDeviceClass + * @params response Response returned by the server for a request to listDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async replaceDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + public async listDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRuleList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; + "V1alpha3DeviceTaintRuleList", "" + ) as V1alpha3DeviceTaintRuleList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -5079,10 +855,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRuleList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; + "V1alpha3DeviceTaintRuleList", "" + ) as V1alpha3DeviceTaintRuleList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -5093,10 +869,10 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceDeviceTaintRule + * @params response Response returned by the server for a request to patchDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async replaceDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { + public async patchDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( @@ -5132,101 +908,16 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async replaceNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to replaceNamespacedResourceClaimStatus - * @throws ApiException if the response code was not in [200, 299] - */ - public async replaceNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to replaceNamespacedResourceClaimTemplate + * @params response Response returned by the server for a request to readDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + public async readDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -5235,10 +926,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -5249,23 +940,23 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceResourceSlice + * @params response Response returned by the server for a request to replaceDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async replaceResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + public async replaceDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -5274,10 +965,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } diff --git a/src/gen/apis/StorageV1Api.ts b/src/gen/apis/StorageV1Api.ts index 93bf24fd83..8fe6cbe9c7 100644 --- a/src/gen/apis/StorageV1Api.ts +++ b/src/gen/apis/StorageV1Api.ts @@ -23,6 +23,8 @@ import { V1StorageClass } from '../models/V1StorageClass.js'; import { V1StorageClassList } from '../models/V1StorageClassList.js'; import { V1VolumeAttachment } from '../models/V1VolumeAttachment.js'; import { V1VolumeAttachmentList } from '../models/V1VolumeAttachmentList.js'; +import { V1VolumeAttributesClass } from '../models/V1VolumeAttributesClass.js'; +import { V1VolumeAttributesClassList } from '../models/V1VolumeAttributesClassList.js'; /** * no description @@ -402,6 +404,79 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * create a VolumeAttributesClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createVolumeAttributesClass(body: V1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("StorageV1Api", "createVolumeAttributesClass", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1VolumeAttributesClass", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * delete a CSIDriver * @param name name of the CSIDriver @@ -1280,6 +1355,144 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * delete collection of VolumeAttributesClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionVolumeAttributesClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * delete a CSIStorageCapacity * @param name name of the CSIStorageCapacity @@ -1558,6 +1771,96 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * delete a VolumeAttributesClass + * @param name name of the VolumeAttributesClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteVolumeAttributesClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("StorageV1Api", "deleteVolumeAttributesClass", "name"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * get available resources */ @@ -1828,12 +2131,131 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/csistoragecapacities'; + const localVarPath = '/apis/storage.k8s.io/v1/csistoragecapacities'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedCSIStorageCapacity(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("StorageV1Api", "listNamespacedCSIStorageCapacity", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + // Query Params if (allowWatchBookmarks !== undefined) { requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); @@ -1859,11 +2281,6 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); } - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - // Query Params if (resourceVersion !== undefined) { requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); @@ -1906,8 +2323,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * list or watch objects of kind CSIStorageCapacity - * @param namespace object name and auth scope, such as for teams and projects + * list or watch objects of kind StorageClass * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -1920,15 +2336,9 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listNamespacedCSIStorageCapacity(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listStorageClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("StorageV1Api", "listNamespacedCSIStorageCapacity", "namespace"); - } - - @@ -1941,8 +2351,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/storage.k8s.io/v1/storageclasses'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -2020,7 +2429,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * list or watch objects of kind StorageClass + * list or watch objects of kind VolumeAttachment * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -2033,7 +2442,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listStorageClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listVolumeAttachment(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -2048,7 +2457,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/storageclasses'; + const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -2126,7 +2535,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * list or watch objects of kind VolumeAttachment + * list or watch objects of kind VolumeAttributesClass * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -2139,7 +2548,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listVolumeAttachment(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listVolumeAttributesClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -2154,7 +2563,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments'; + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -2827,6 +3236,104 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * partially update the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchVolumeAttributesClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("StorageV1Api", "patchVolumeAttributesClass", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("StorageV1Api", "patchVolumeAttributesClass", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * read the specified CSIDriver * @param name name of the CSIDriver @@ -3099,6 +3606,50 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * read the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readVolumeAttributesClass(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("StorageV1Api", "readVolumeAttributesClass", "name"); + } + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * replace the specified CSIDriver * @param name name of the CSIDriver @@ -3209,8 +3760,97 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/csinodes/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + const localVarPath = '/apis/storage.k8s.io/v1/csinodes/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1CSINode", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified CSIStorageCapacity + * @param name name of the CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedCSIStorageCapacity(name: string, namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); @@ -3241,7 +3881,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1CSINode", ""), + ObjectSerializer.serialize(body, "V1CSIStorageCapacity", ""), contentType ); requestContext.setBody(serializedBody); @@ -3262,33 +3902,26 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * replace the specified CSIStorageCapacity - * @param name name of the CSIStorageCapacity - * @param namespace object name and auth scope, such as for teams and projects + * replace the specified StorageClass + * @param name name of the StorageClass * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceNamespacedCSIStorageCapacity(name: string, namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceStorageClass(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "namespace"); + throw new RequiredError("StorageV1Api", "replaceStorageClass", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "body"); + throw new RequiredError("StorageV1Api", "replaceStorageClass", "body"); } @@ -3297,9 +3930,8 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/storage.k8s.io/v1/storageclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); @@ -3330,7 +3962,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1CSIStorageCapacity", ""), + ObjectSerializer.serialize(body, "V1StorageClass", ""), contentType ); requestContext.setBody(serializedBody); @@ -3351,26 +3983,26 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * replace the specified StorageClass - * @param name name of the StorageClass + * replace the specified VolumeAttachment + * @param name name of the VolumeAttachment * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceStorageClass(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceVolumeAttachment(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("StorageV1Api", "replaceStorageClass", "name"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttachment", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("StorageV1Api", "replaceStorageClass", "body"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttachment", "body"); } @@ -3379,7 +4011,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/storageclasses/{name}' + const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -3411,7 +4043,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1StorageClass", ""), + ObjectSerializer.serialize(body, "V1VolumeAttachment", ""), contentType ); requestContext.setBody(serializedBody); @@ -3432,7 +4064,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * replace the specified VolumeAttachment + * replace status of the specified VolumeAttachment * @param name name of the VolumeAttachment * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -3440,18 +4072,18 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceVolumeAttachment(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceVolumeAttachmentStatus(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("StorageV1Api", "replaceVolumeAttachment", "name"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttachmentStatus", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("StorageV1Api", "replaceVolumeAttachment", "body"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttachmentStatus", "body"); } @@ -3460,7 +4092,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments/{name}' + const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments/{name}/status' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -3513,26 +4145,26 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * replace status of the specified VolumeAttachment - * @param name name of the VolumeAttachment + * replace the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceVolumeAttachmentStatus(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceVolumeAttributesClass(name: string, body: V1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("StorageV1Api", "replaceVolumeAttachmentStatus", "name"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttributesClass", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("StorageV1Api", "replaceVolumeAttachmentStatus", "body"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttributesClass", "body"); } @@ -3541,7 +4173,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments/{name}/status' + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -3573,7 +4205,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1VolumeAttachment", ""), + ObjectSerializer.serialize(body, "V1VolumeAttributesClass", ""), contentType ); requestContext.setBody(serializedBody); @@ -3827,6 +4459,52 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async createVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4065,6 +4743,38 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4182,6 +4892,45 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4406,6 +5155,38 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async listVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClassList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClassList", "" + ) as V1VolumeAttributesClassList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClassList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClassList", "" + ) as V1VolumeAttributesClassList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4640,6 +5421,45 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4832,6 +5652,38 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async readVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -5066,4 +5918,43 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + } diff --git a/src/gen/index.ts b/src/gen/index.ts index 06e8d8787e..0b62c310f7 100644 --- a/src/gen/index.ts +++ b/src/gen/index.ts @@ -9,5 +9,5 @@ export { RequiredError } from "./apis/baseapi.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 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 CertificatesV1beta1ApiCreateClusterTrustBundleRequest, type CertificatesV1beta1ApiDeleteClusterTrustBundleRequest, type CertificatesV1beta1ApiDeleteCollectionClusterTrustBundleRequest, type CertificatesV1beta1ApiGetAPIResourcesRequest, type CertificatesV1beta1ApiListClusterTrustBundleRequest, type CertificatesV1beta1ApiPatchClusterTrustBundleRequest, type CertificatesV1beta1ApiReadClusterTrustBundleRequest, type CertificatesV1beta1ApiReplaceClusterTrustBundleRequest, ObjectCertificatesV1beta1Api as CertificatesV1beta1Api, type CoordinationApiGetAPIGroupRequest, ObjectCoordinationApi as CoordinationApi, type CoordinationV1ApiCreateNamespacedLeaseRequest, type CoordinationV1ApiDeleteCollectionNamespacedLeaseRequest, type CoordinationV1ApiDeleteNamespacedLeaseRequest, type CoordinationV1ApiGetAPIResourcesRequest, type CoordinationV1ApiListLeaseForAllNamespacesRequest, type CoordinationV1ApiListNamespacedLeaseRequest, type CoordinationV1ApiPatchNamespacedLeaseRequest, type CoordinationV1ApiReadNamespacedLeaseRequest, type CoordinationV1ApiReplaceNamespacedLeaseRequest, ObjectCoordinationV1Api as CoordinationV1Api, type CoordinationV1alpha2ApiCreateNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiDeleteCollectionNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiDeleteNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiGetAPIResourcesRequest, type CoordinationV1alpha2ApiListLeaseCandidateForAllNamespacesRequest, type CoordinationV1alpha2ApiListNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiPatchNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiReadNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiReplaceNamespacedLeaseCandidateRequest, ObjectCoordinationV1alpha2Api as CoordinationV1alpha2Api, type CoordinationV1beta1ApiCreateNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiDeleteCollectionNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiDeleteNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiGetAPIResourcesRequest, type CoordinationV1beta1ApiListLeaseCandidateForAllNamespacesRequest, type CoordinationV1beta1ApiListNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiPatchNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiReadNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiReplaceNamespacedLeaseCandidateRequest, ObjectCoordinationV1beta1Api as CoordinationV1beta1Api, type CoreApiGetAPIVersionsRequest, ObjectCoreApi as CoreApi, type CoreV1ApiConnectDeleteNamespacedPodProxyRequest, type CoreV1ApiConnectDeleteNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectDeleteNamespacedServiceProxyRequest, type CoreV1ApiConnectDeleteNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectDeleteNodeProxyRequest, type CoreV1ApiConnectDeleteNodeProxyWithPathRequest, type CoreV1ApiConnectGetNamespacedPodAttachRequest, type CoreV1ApiConnectGetNamespacedPodExecRequest, type CoreV1ApiConnectGetNamespacedPodPortforwardRequest, type CoreV1ApiConnectGetNamespacedPodProxyRequest, type CoreV1ApiConnectGetNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectGetNamespacedServiceProxyRequest, type CoreV1ApiConnectGetNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectGetNodeProxyRequest, type CoreV1ApiConnectGetNodeProxyWithPathRequest, type CoreV1ApiConnectHeadNamespacedPodProxyRequest, type CoreV1ApiConnectHeadNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectHeadNamespacedServiceProxyRequest, type CoreV1ApiConnectHeadNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectHeadNodeProxyRequest, type CoreV1ApiConnectHeadNodeProxyWithPathRequest, type CoreV1ApiConnectOptionsNamespacedPodProxyRequest, type CoreV1ApiConnectOptionsNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectOptionsNamespacedServiceProxyRequest, type CoreV1ApiConnectOptionsNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectOptionsNodeProxyRequest, type CoreV1ApiConnectOptionsNodeProxyWithPathRequest, type CoreV1ApiConnectPatchNamespacedPodProxyRequest, type CoreV1ApiConnectPatchNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPatchNamespacedServiceProxyRequest, type CoreV1ApiConnectPatchNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPatchNodeProxyRequest, type CoreV1ApiConnectPatchNodeProxyWithPathRequest, type CoreV1ApiConnectPostNamespacedPodAttachRequest, type CoreV1ApiConnectPostNamespacedPodExecRequest, type CoreV1ApiConnectPostNamespacedPodPortforwardRequest, type CoreV1ApiConnectPostNamespacedPodProxyRequest, type CoreV1ApiConnectPostNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPostNamespacedServiceProxyRequest, type CoreV1ApiConnectPostNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPostNodeProxyRequest, type CoreV1ApiConnectPostNodeProxyWithPathRequest, type CoreV1ApiConnectPutNamespacedPodProxyRequest, type CoreV1ApiConnectPutNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPutNamespacedServiceProxyRequest, type CoreV1ApiConnectPutNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPutNodeProxyRequest, type CoreV1ApiConnectPutNodeProxyWithPathRequest, type CoreV1ApiCreateNamespaceRequest, type CoreV1ApiCreateNamespacedBindingRequest, type CoreV1ApiCreateNamespacedConfigMapRequest, type CoreV1ApiCreateNamespacedEndpointsRequest, type CoreV1ApiCreateNamespacedEventRequest, type CoreV1ApiCreateNamespacedLimitRangeRequest, type CoreV1ApiCreateNamespacedPersistentVolumeClaimRequest, type CoreV1ApiCreateNamespacedPodRequest, type CoreV1ApiCreateNamespacedPodBindingRequest, type CoreV1ApiCreateNamespacedPodEvictionRequest, type CoreV1ApiCreateNamespacedPodTemplateRequest, type CoreV1ApiCreateNamespacedReplicationControllerRequest, type CoreV1ApiCreateNamespacedResourceQuotaRequest, type CoreV1ApiCreateNamespacedSecretRequest, type CoreV1ApiCreateNamespacedServiceRequest, type CoreV1ApiCreateNamespacedServiceAccountRequest, type CoreV1ApiCreateNamespacedServiceAccountTokenRequest, type CoreV1ApiCreateNodeRequest, type CoreV1ApiCreatePersistentVolumeRequest, type CoreV1ApiDeleteCollectionNamespacedConfigMapRequest, type CoreV1ApiDeleteCollectionNamespacedEndpointsRequest, type CoreV1ApiDeleteCollectionNamespacedEventRequest, type CoreV1ApiDeleteCollectionNamespacedLimitRangeRequest, type CoreV1ApiDeleteCollectionNamespacedPersistentVolumeClaimRequest, type CoreV1ApiDeleteCollectionNamespacedPodRequest, type CoreV1ApiDeleteCollectionNamespacedPodTemplateRequest, type CoreV1ApiDeleteCollectionNamespacedReplicationControllerRequest, type CoreV1ApiDeleteCollectionNamespacedResourceQuotaRequest, type CoreV1ApiDeleteCollectionNamespacedSecretRequest, type CoreV1ApiDeleteCollectionNamespacedServiceRequest, type CoreV1ApiDeleteCollectionNamespacedServiceAccountRequest, type CoreV1ApiDeleteCollectionNodeRequest, type CoreV1ApiDeleteCollectionPersistentVolumeRequest, type CoreV1ApiDeleteNamespaceRequest, type CoreV1ApiDeleteNamespacedConfigMapRequest, type CoreV1ApiDeleteNamespacedEndpointsRequest, type CoreV1ApiDeleteNamespacedEventRequest, type CoreV1ApiDeleteNamespacedLimitRangeRequest, type CoreV1ApiDeleteNamespacedPersistentVolumeClaimRequest, type CoreV1ApiDeleteNamespacedPodRequest, type CoreV1ApiDeleteNamespacedPodTemplateRequest, type CoreV1ApiDeleteNamespacedReplicationControllerRequest, type CoreV1ApiDeleteNamespacedResourceQuotaRequest, type CoreV1ApiDeleteNamespacedSecretRequest, type CoreV1ApiDeleteNamespacedServiceRequest, type CoreV1ApiDeleteNamespacedServiceAccountRequest, type CoreV1ApiDeleteNodeRequest, type CoreV1ApiDeletePersistentVolumeRequest, type CoreV1ApiGetAPIResourcesRequest, type CoreV1ApiListComponentStatusRequest, type CoreV1ApiListConfigMapForAllNamespacesRequest, type CoreV1ApiListEndpointsForAllNamespacesRequest, type CoreV1ApiListEventForAllNamespacesRequest, type CoreV1ApiListLimitRangeForAllNamespacesRequest, type CoreV1ApiListNamespaceRequest, type CoreV1ApiListNamespacedConfigMapRequest, type CoreV1ApiListNamespacedEndpointsRequest, type CoreV1ApiListNamespacedEventRequest, type CoreV1ApiListNamespacedLimitRangeRequest, type CoreV1ApiListNamespacedPersistentVolumeClaimRequest, type CoreV1ApiListNamespacedPodRequest, type CoreV1ApiListNamespacedPodTemplateRequest, type CoreV1ApiListNamespacedReplicationControllerRequest, type CoreV1ApiListNamespacedResourceQuotaRequest, type CoreV1ApiListNamespacedSecretRequest, type CoreV1ApiListNamespacedServiceRequest, type CoreV1ApiListNamespacedServiceAccountRequest, type CoreV1ApiListNodeRequest, type CoreV1ApiListPersistentVolumeRequest, type CoreV1ApiListPersistentVolumeClaimForAllNamespacesRequest, type CoreV1ApiListPodForAllNamespacesRequest, type CoreV1ApiListPodTemplateForAllNamespacesRequest, type CoreV1ApiListReplicationControllerForAllNamespacesRequest, type CoreV1ApiListResourceQuotaForAllNamespacesRequest, type CoreV1ApiListSecretForAllNamespacesRequest, type CoreV1ApiListServiceAccountForAllNamespacesRequest, type CoreV1ApiListServiceForAllNamespacesRequest, type CoreV1ApiPatchNamespaceRequest, type CoreV1ApiPatchNamespaceStatusRequest, type CoreV1ApiPatchNamespacedConfigMapRequest, type CoreV1ApiPatchNamespacedEndpointsRequest, type CoreV1ApiPatchNamespacedEventRequest, type CoreV1ApiPatchNamespacedLimitRangeRequest, type CoreV1ApiPatchNamespacedPersistentVolumeClaimRequest, type CoreV1ApiPatchNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiPatchNamespacedPodRequest, type CoreV1ApiPatchNamespacedPodEphemeralcontainersRequest, type CoreV1ApiPatchNamespacedPodResizeRequest, type CoreV1ApiPatchNamespacedPodStatusRequest, type CoreV1ApiPatchNamespacedPodTemplateRequest, type CoreV1ApiPatchNamespacedReplicationControllerRequest, type CoreV1ApiPatchNamespacedReplicationControllerScaleRequest, type CoreV1ApiPatchNamespacedReplicationControllerStatusRequest, type CoreV1ApiPatchNamespacedResourceQuotaRequest, type CoreV1ApiPatchNamespacedResourceQuotaStatusRequest, type CoreV1ApiPatchNamespacedSecretRequest, type CoreV1ApiPatchNamespacedServiceRequest, type CoreV1ApiPatchNamespacedServiceAccountRequest, type CoreV1ApiPatchNamespacedServiceStatusRequest, type CoreV1ApiPatchNodeRequest, type CoreV1ApiPatchNodeStatusRequest, type CoreV1ApiPatchPersistentVolumeRequest, type CoreV1ApiPatchPersistentVolumeStatusRequest, type CoreV1ApiReadComponentStatusRequest, type CoreV1ApiReadNamespaceRequest, type CoreV1ApiReadNamespaceStatusRequest, type CoreV1ApiReadNamespacedConfigMapRequest, type CoreV1ApiReadNamespacedEndpointsRequest, type CoreV1ApiReadNamespacedEventRequest, type CoreV1ApiReadNamespacedLimitRangeRequest, type CoreV1ApiReadNamespacedPersistentVolumeClaimRequest, type CoreV1ApiReadNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiReadNamespacedPodRequest, type CoreV1ApiReadNamespacedPodEphemeralcontainersRequest, type CoreV1ApiReadNamespacedPodLogRequest, type CoreV1ApiReadNamespacedPodResizeRequest, type CoreV1ApiReadNamespacedPodStatusRequest, type CoreV1ApiReadNamespacedPodTemplateRequest, type CoreV1ApiReadNamespacedReplicationControllerRequest, type CoreV1ApiReadNamespacedReplicationControllerScaleRequest, type CoreV1ApiReadNamespacedReplicationControllerStatusRequest, type CoreV1ApiReadNamespacedResourceQuotaRequest, type CoreV1ApiReadNamespacedResourceQuotaStatusRequest, type CoreV1ApiReadNamespacedSecretRequest, type CoreV1ApiReadNamespacedServiceRequest, type CoreV1ApiReadNamespacedServiceAccountRequest, type CoreV1ApiReadNamespacedServiceStatusRequest, type CoreV1ApiReadNodeRequest, type CoreV1ApiReadNodeStatusRequest, type CoreV1ApiReadPersistentVolumeRequest, type CoreV1ApiReadPersistentVolumeStatusRequest, type CoreV1ApiReplaceNamespaceRequest, type CoreV1ApiReplaceNamespaceFinalizeRequest, type CoreV1ApiReplaceNamespaceStatusRequest, type CoreV1ApiReplaceNamespacedConfigMapRequest, type CoreV1ApiReplaceNamespacedEndpointsRequest, type CoreV1ApiReplaceNamespacedEventRequest, type CoreV1ApiReplaceNamespacedLimitRangeRequest, type CoreV1ApiReplaceNamespacedPersistentVolumeClaimRequest, type CoreV1ApiReplaceNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiReplaceNamespacedPodRequest, type CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest, type CoreV1ApiReplaceNamespacedPodResizeRequest, type CoreV1ApiReplaceNamespacedPodStatusRequest, type CoreV1ApiReplaceNamespacedPodTemplateRequest, type CoreV1ApiReplaceNamespacedReplicationControllerRequest, type CoreV1ApiReplaceNamespacedReplicationControllerScaleRequest, type CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest, type CoreV1ApiReplaceNamespacedResourceQuotaRequest, type CoreV1ApiReplaceNamespacedResourceQuotaStatusRequest, type CoreV1ApiReplaceNamespacedSecretRequest, type CoreV1ApiReplaceNamespacedServiceRequest, type CoreV1ApiReplaceNamespacedServiceAccountRequest, type CoreV1ApiReplaceNamespacedServiceStatusRequest, type CoreV1ApiReplaceNodeRequest, type CoreV1ApiReplaceNodeStatusRequest, type CoreV1ApiReplacePersistentVolumeRequest, type CoreV1ApiReplacePersistentVolumeStatusRequest, ObjectCoreV1Api as CoreV1Api, type CustomObjectsApiCreateClusterCustomObjectRequest, type CustomObjectsApiCreateNamespacedCustomObjectRequest, type CustomObjectsApiDeleteClusterCustomObjectRequest, type CustomObjectsApiDeleteCollectionClusterCustomObjectRequest, type CustomObjectsApiDeleteCollectionNamespacedCustomObjectRequest, type CustomObjectsApiDeleteNamespacedCustomObjectRequest, type CustomObjectsApiGetAPIResourcesRequest, type CustomObjectsApiGetClusterCustomObjectRequest, type CustomObjectsApiGetClusterCustomObjectScaleRequest, type CustomObjectsApiGetClusterCustomObjectStatusRequest, type CustomObjectsApiGetNamespacedCustomObjectRequest, type CustomObjectsApiGetNamespacedCustomObjectScaleRequest, type CustomObjectsApiGetNamespacedCustomObjectStatusRequest, type CustomObjectsApiListClusterCustomObjectRequest, type CustomObjectsApiListCustomObjectForAllNamespacesRequest, type CustomObjectsApiListNamespacedCustomObjectRequest, type CustomObjectsApiPatchClusterCustomObjectRequest, type CustomObjectsApiPatchClusterCustomObjectScaleRequest, type CustomObjectsApiPatchClusterCustomObjectStatusRequest, type CustomObjectsApiPatchNamespacedCustomObjectRequest, type CustomObjectsApiPatchNamespacedCustomObjectScaleRequest, type CustomObjectsApiPatchNamespacedCustomObjectStatusRequest, type CustomObjectsApiReplaceClusterCustomObjectRequest, type CustomObjectsApiReplaceClusterCustomObjectScaleRequest, type CustomObjectsApiReplaceClusterCustomObjectStatusRequest, type CustomObjectsApiReplaceNamespacedCustomObjectRequest, type CustomObjectsApiReplaceNamespacedCustomObjectScaleRequest, type CustomObjectsApiReplaceNamespacedCustomObjectStatusRequest, ObjectCustomObjectsApi as CustomObjectsApi, type DiscoveryApiGetAPIGroupRequest, ObjectDiscoveryApi as DiscoveryApi, type DiscoveryV1ApiCreateNamespacedEndpointSliceRequest, type DiscoveryV1ApiDeleteCollectionNamespacedEndpointSliceRequest, type DiscoveryV1ApiDeleteNamespacedEndpointSliceRequest, type DiscoveryV1ApiGetAPIResourcesRequest, type DiscoveryV1ApiListEndpointSliceForAllNamespacesRequest, type DiscoveryV1ApiListNamespacedEndpointSliceRequest, type DiscoveryV1ApiPatchNamespacedEndpointSliceRequest, type DiscoveryV1ApiReadNamespacedEndpointSliceRequest, type DiscoveryV1ApiReplaceNamespacedEndpointSliceRequest, ObjectDiscoveryV1Api as DiscoveryV1Api, type EventsApiGetAPIGroupRequest, ObjectEventsApi as EventsApi, type EventsV1ApiCreateNamespacedEventRequest, type EventsV1ApiDeleteCollectionNamespacedEventRequest, type EventsV1ApiDeleteNamespacedEventRequest, type EventsV1ApiGetAPIResourcesRequest, type EventsV1ApiListEventForAllNamespacesRequest, type EventsV1ApiListNamespacedEventRequest, type EventsV1ApiPatchNamespacedEventRequest, type EventsV1ApiReadNamespacedEventRequest, type EventsV1ApiReplaceNamespacedEventRequest, ObjectEventsV1Api as EventsV1Api, type FlowcontrolApiserverApiGetAPIGroupRequest, ObjectFlowcontrolApiserverApi as FlowcontrolApiserverApi, type FlowcontrolApiserverV1ApiCreateFlowSchemaRequest, type FlowcontrolApiserverV1ApiCreatePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiDeleteCollectionFlowSchemaRequest, type FlowcontrolApiserverV1ApiDeleteCollectionPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiDeleteFlowSchemaRequest, type FlowcontrolApiserverV1ApiDeletePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiGetAPIResourcesRequest, type FlowcontrolApiserverV1ApiListFlowSchemaRequest, type FlowcontrolApiserverV1ApiListPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiPatchFlowSchemaRequest, type FlowcontrolApiserverV1ApiPatchFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationStatusRequest, type FlowcontrolApiserverV1ApiReadFlowSchemaRequest, type FlowcontrolApiserverV1ApiReadFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationStatusRequest, type FlowcontrolApiserverV1ApiReplaceFlowSchemaRequest, type FlowcontrolApiserverV1ApiReplaceFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationStatusRequest, ObjectFlowcontrolApiserverV1Api as FlowcontrolApiserverV1Api, type InternalApiserverApiGetAPIGroupRequest, ObjectInternalApiserverApi as InternalApiserverApi, type InternalApiserverV1alpha1ApiCreateStorageVersionRequest, type InternalApiserverV1alpha1ApiDeleteCollectionStorageVersionRequest, type InternalApiserverV1alpha1ApiDeleteStorageVersionRequest, type InternalApiserverV1alpha1ApiGetAPIResourcesRequest, type InternalApiserverV1alpha1ApiListStorageVersionRequest, type InternalApiserverV1alpha1ApiPatchStorageVersionRequest, type InternalApiserverV1alpha1ApiPatchStorageVersionStatusRequest, type InternalApiserverV1alpha1ApiReadStorageVersionRequest, type InternalApiserverV1alpha1ApiReadStorageVersionStatusRequest, type InternalApiserverV1alpha1ApiReplaceStorageVersionRequest, type InternalApiserverV1alpha1ApiReplaceStorageVersionStatusRequest, ObjectInternalApiserverV1alpha1Api as InternalApiserverV1alpha1Api, type LogsApiLogFileHandlerRequest, type LogsApiLogFileListHandlerRequest, ObjectLogsApi as LogsApi, type NetworkingApiGetAPIGroupRequest, ObjectNetworkingApi as NetworkingApi, type NetworkingV1ApiCreateIPAddressRequest, type NetworkingV1ApiCreateIngressClassRequest, type NetworkingV1ApiCreateNamespacedIngressRequest, type NetworkingV1ApiCreateNamespacedNetworkPolicyRequest, type NetworkingV1ApiCreateServiceCIDRRequest, type NetworkingV1ApiDeleteCollectionIPAddressRequest, type NetworkingV1ApiDeleteCollectionIngressClassRequest, type NetworkingV1ApiDeleteCollectionNamespacedIngressRequest, type NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest, type NetworkingV1ApiDeleteCollectionServiceCIDRRequest, type NetworkingV1ApiDeleteIPAddressRequest, type NetworkingV1ApiDeleteIngressClassRequest, type NetworkingV1ApiDeleteNamespacedIngressRequest, type NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest, type NetworkingV1ApiDeleteServiceCIDRRequest, type NetworkingV1ApiGetAPIResourcesRequest, type NetworkingV1ApiListIPAddressRequest, type NetworkingV1ApiListIngressClassRequest, type NetworkingV1ApiListIngressForAllNamespacesRequest, type NetworkingV1ApiListNamespacedIngressRequest, type NetworkingV1ApiListNamespacedNetworkPolicyRequest, type NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest, type NetworkingV1ApiListServiceCIDRRequest, type NetworkingV1ApiPatchIPAddressRequest, type NetworkingV1ApiPatchIngressClassRequest, type NetworkingV1ApiPatchNamespacedIngressRequest, type NetworkingV1ApiPatchNamespacedIngressStatusRequest, type NetworkingV1ApiPatchNamespacedNetworkPolicyRequest, type NetworkingV1ApiPatchServiceCIDRRequest, type NetworkingV1ApiPatchServiceCIDRStatusRequest, type NetworkingV1ApiReadIPAddressRequest, type NetworkingV1ApiReadIngressClassRequest, type NetworkingV1ApiReadNamespacedIngressRequest, type NetworkingV1ApiReadNamespacedIngressStatusRequest, type NetworkingV1ApiReadNamespacedNetworkPolicyRequest, type NetworkingV1ApiReadServiceCIDRRequest, type NetworkingV1ApiReadServiceCIDRStatusRequest, type NetworkingV1ApiReplaceIPAddressRequest, type NetworkingV1ApiReplaceIngressClassRequest, type NetworkingV1ApiReplaceNamespacedIngressRequest, type NetworkingV1ApiReplaceNamespacedIngressStatusRequest, type NetworkingV1ApiReplaceNamespacedNetworkPolicyRequest, type NetworkingV1ApiReplaceServiceCIDRRequest, type NetworkingV1ApiReplaceServiceCIDRStatusRequest, ObjectNetworkingV1Api as NetworkingV1Api, type NetworkingV1beta1ApiCreateIPAddressRequest, type NetworkingV1beta1ApiCreateServiceCIDRRequest, type NetworkingV1beta1ApiDeleteCollectionIPAddressRequest, type NetworkingV1beta1ApiDeleteCollectionServiceCIDRRequest, type NetworkingV1beta1ApiDeleteIPAddressRequest, type NetworkingV1beta1ApiDeleteServiceCIDRRequest, type NetworkingV1beta1ApiGetAPIResourcesRequest, type NetworkingV1beta1ApiListIPAddressRequest, type NetworkingV1beta1ApiListServiceCIDRRequest, type NetworkingV1beta1ApiPatchIPAddressRequest, type NetworkingV1beta1ApiPatchServiceCIDRRequest, type NetworkingV1beta1ApiPatchServiceCIDRStatusRequest, type NetworkingV1beta1ApiReadIPAddressRequest, type NetworkingV1beta1ApiReadServiceCIDRRequest, type NetworkingV1beta1ApiReadServiceCIDRStatusRequest, type NetworkingV1beta1ApiReplaceIPAddressRequest, type NetworkingV1beta1ApiReplaceServiceCIDRRequest, type NetworkingV1beta1ApiReplaceServiceCIDRStatusRequest, ObjectNetworkingV1beta1Api as NetworkingV1beta1Api, type NodeApiGetAPIGroupRequest, ObjectNodeApi as NodeApi, type NodeV1ApiCreateRuntimeClassRequest, type NodeV1ApiDeleteCollectionRuntimeClassRequest, type NodeV1ApiDeleteRuntimeClassRequest, type NodeV1ApiGetAPIResourcesRequest, type NodeV1ApiListRuntimeClassRequest, type NodeV1ApiPatchRuntimeClassRequest, type NodeV1ApiReadRuntimeClassRequest, type NodeV1ApiReplaceRuntimeClassRequest, ObjectNodeV1Api as NodeV1Api, type OpenidApiGetServiceAccountIssuerOpenIDKeysetRequest, ObjectOpenidApi as OpenidApi, type PolicyApiGetAPIGroupRequest, ObjectPolicyApi as PolicyApi, type PolicyV1ApiCreateNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiDeleteCollectionNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiDeleteNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiGetAPIResourcesRequest, type PolicyV1ApiListNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiListPodDisruptionBudgetForAllNamespacesRequest, type PolicyV1ApiPatchNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiPatchNamespacedPodDisruptionBudgetStatusRequest, type PolicyV1ApiReadNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiReadNamespacedPodDisruptionBudgetStatusRequest, type PolicyV1ApiReplaceNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiReplaceNamespacedPodDisruptionBudgetStatusRequest, ObjectPolicyV1Api as PolicyV1Api, type RbacAuthorizationApiGetAPIGroupRequest, ObjectRbacAuthorizationApi as RbacAuthorizationApi, type RbacAuthorizationV1ApiCreateClusterRoleRequest, type RbacAuthorizationV1ApiCreateClusterRoleBindingRequest, type RbacAuthorizationV1ApiCreateNamespacedRoleRequest, type RbacAuthorizationV1ApiCreateNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiDeleteClusterRoleRequest, type RbacAuthorizationV1ApiDeleteClusterRoleBindingRequest, type RbacAuthorizationV1ApiDeleteCollectionClusterRoleRequest, type RbacAuthorizationV1ApiDeleteCollectionClusterRoleBindingRequest, type RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleRequest, type RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiDeleteNamespacedRoleRequest, type RbacAuthorizationV1ApiDeleteNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiGetAPIResourcesRequest, type RbacAuthorizationV1ApiListClusterRoleRequest, type RbacAuthorizationV1ApiListClusterRoleBindingRequest, type RbacAuthorizationV1ApiListNamespacedRoleRequest, type RbacAuthorizationV1ApiListNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiListRoleBindingForAllNamespacesRequest, type RbacAuthorizationV1ApiListRoleForAllNamespacesRequest, type RbacAuthorizationV1ApiPatchClusterRoleRequest, type RbacAuthorizationV1ApiPatchClusterRoleBindingRequest, type RbacAuthorizationV1ApiPatchNamespacedRoleRequest, type RbacAuthorizationV1ApiPatchNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiReadClusterRoleRequest, type RbacAuthorizationV1ApiReadClusterRoleBindingRequest, type RbacAuthorizationV1ApiReadNamespacedRoleRequest, type RbacAuthorizationV1ApiReadNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiReplaceClusterRoleRequest, type RbacAuthorizationV1ApiReplaceClusterRoleBindingRequest, type RbacAuthorizationV1ApiReplaceNamespacedRoleRequest, type RbacAuthorizationV1ApiReplaceNamespacedRoleBindingRequest, ObjectRbacAuthorizationV1Api as RbacAuthorizationV1Api, type ResourceApiGetAPIGroupRequest, ObjectResourceApi as ResourceApi, type ResourceV1alpha3ApiCreateDeviceClassRequest, type ResourceV1alpha3ApiCreateDeviceTaintRuleRequest, type ResourceV1alpha3ApiCreateNamespacedResourceClaimRequest, type ResourceV1alpha3ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiCreateResourceSliceRequest, type ResourceV1alpha3ApiDeleteCollectionDeviceClassRequest, type ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest, type ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiDeleteCollectionResourceSliceRequest, type ResourceV1alpha3ApiDeleteDeviceClassRequest, type ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest, type ResourceV1alpha3ApiDeleteNamespacedResourceClaimRequest, type ResourceV1alpha3ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiDeleteResourceSliceRequest, type ResourceV1alpha3ApiGetAPIResourcesRequest, type ResourceV1alpha3ApiListDeviceClassRequest, type ResourceV1alpha3ApiListDeviceTaintRuleRequest, type ResourceV1alpha3ApiListNamespacedResourceClaimRequest, type ResourceV1alpha3ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiListResourceClaimForAllNamespacesRequest, type ResourceV1alpha3ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1alpha3ApiListResourceSliceRequest, type ResourceV1alpha3ApiPatchDeviceClassRequest, type ResourceV1alpha3ApiPatchDeviceTaintRuleRequest, type ResourceV1alpha3ApiPatchNamespacedResourceClaimRequest, type ResourceV1alpha3ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1alpha3ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiPatchResourceSliceRequest, type ResourceV1alpha3ApiReadDeviceClassRequest, type ResourceV1alpha3ApiReadDeviceTaintRuleRequest, type ResourceV1alpha3ApiReadNamespacedResourceClaimRequest, type ResourceV1alpha3ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1alpha3ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiReadResourceSliceRequest, type ResourceV1alpha3ApiReplaceDeviceClassRequest, type ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest, 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 ResourceV1beta2ApiCreateDeviceClassRequest, type ResourceV1beta2ApiCreateNamespacedResourceClaimRequest, type ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiCreateResourceSliceRequest, type ResourceV1beta2ApiDeleteCollectionDeviceClassRequest, type ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiDeleteCollectionResourceSliceRequest, type ResourceV1beta2ApiDeleteDeviceClassRequest, type ResourceV1beta2ApiDeleteNamespacedResourceClaimRequest, type ResourceV1beta2ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiDeleteResourceSliceRequest, type ResourceV1beta2ApiGetAPIResourcesRequest, type ResourceV1beta2ApiListDeviceClassRequest, type ResourceV1beta2ApiListNamespacedResourceClaimRequest, type ResourceV1beta2ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiListResourceClaimForAllNamespacesRequest, type ResourceV1beta2ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1beta2ApiListResourceSliceRequest, type ResourceV1beta2ApiPatchDeviceClassRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiPatchResourceSliceRequest, type ResourceV1beta2ApiReadDeviceClassRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiReadResourceSliceRequest, type ResourceV1beta2ApiReplaceDeviceClassRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiReplaceResourceSliceRequest, ObjectResourceV1beta2Api as ResourceV1beta2Api, type SchedulingApiGetAPIGroupRequest, ObjectSchedulingApi as SchedulingApi, type SchedulingV1ApiCreatePriorityClassRequest, type SchedulingV1ApiDeleteCollectionPriorityClassRequest, type SchedulingV1ApiDeletePriorityClassRequest, type SchedulingV1ApiGetAPIResourcesRequest, type SchedulingV1ApiListPriorityClassRequest, type SchedulingV1ApiPatchPriorityClassRequest, type SchedulingV1ApiReadPriorityClassRequest, type SchedulingV1ApiReplacePriorityClassRequest, ObjectSchedulingV1Api as SchedulingV1Api, type StorageApiGetAPIGroupRequest, ObjectStorageApi as StorageApi, type StorageV1ApiCreateCSIDriverRequest, type StorageV1ApiCreateCSINodeRequest, type StorageV1ApiCreateNamespacedCSIStorageCapacityRequest, type StorageV1ApiCreateStorageClassRequest, type StorageV1ApiCreateVolumeAttachmentRequest, type StorageV1ApiDeleteCSIDriverRequest, type StorageV1ApiDeleteCSINodeRequest, type StorageV1ApiDeleteCollectionCSIDriverRequest, type StorageV1ApiDeleteCollectionCSINodeRequest, type StorageV1ApiDeleteCollectionNamespacedCSIStorageCapacityRequest, type StorageV1ApiDeleteCollectionStorageClassRequest, type StorageV1ApiDeleteCollectionVolumeAttachmentRequest, type StorageV1ApiDeleteNamespacedCSIStorageCapacityRequest, type StorageV1ApiDeleteStorageClassRequest, type StorageV1ApiDeleteVolumeAttachmentRequest, type StorageV1ApiGetAPIResourcesRequest, type StorageV1ApiListCSIDriverRequest, type StorageV1ApiListCSINodeRequest, type StorageV1ApiListCSIStorageCapacityForAllNamespacesRequest, type StorageV1ApiListNamespacedCSIStorageCapacityRequest, type StorageV1ApiListStorageClassRequest, type StorageV1ApiListVolumeAttachmentRequest, type StorageV1ApiPatchCSIDriverRequest, type StorageV1ApiPatchCSINodeRequest, type StorageV1ApiPatchNamespacedCSIStorageCapacityRequest, type StorageV1ApiPatchStorageClassRequest, type StorageV1ApiPatchVolumeAttachmentRequest, type StorageV1ApiPatchVolumeAttachmentStatusRequest, type StorageV1ApiReadCSIDriverRequest, type StorageV1ApiReadCSINodeRequest, type StorageV1ApiReadNamespacedCSIStorageCapacityRequest, type StorageV1ApiReadStorageClassRequest, type StorageV1ApiReadVolumeAttachmentRequest, type StorageV1ApiReadVolumeAttachmentStatusRequest, type StorageV1ApiReplaceCSIDriverRequest, type StorageV1ApiReplaceCSINodeRequest, type StorageV1ApiReplaceNamespacedCSIStorageCapacityRequest, type StorageV1ApiReplaceStorageClassRequest, type StorageV1ApiReplaceVolumeAttachmentRequest, type StorageV1ApiReplaceVolumeAttachmentStatusRequest, ObjectStorageV1Api as StorageV1Api, type StorageV1alpha1ApiCreateVolumeAttributesClassRequest, type StorageV1alpha1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1alpha1ApiDeleteVolumeAttributesClassRequest, type StorageV1alpha1ApiGetAPIResourcesRequest, type StorageV1alpha1ApiListVolumeAttributesClassRequest, type StorageV1alpha1ApiPatchVolumeAttributesClassRequest, type StorageV1alpha1ApiReadVolumeAttributesClassRequest, type StorageV1alpha1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1alpha1Api as StorageV1alpha1Api, type StorageV1beta1ApiCreateVolumeAttributesClassRequest, type StorageV1beta1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1beta1ApiDeleteVolumeAttributesClassRequest, type StorageV1beta1ApiGetAPIResourcesRequest, type StorageV1beta1ApiListVolumeAttributesClassRequest, type StorageV1beta1ApiPatchVolumeAttributesClassRequest, type StorageV1beta1ApiReadVolumeAttributesClassRequest, type StorageV1beta1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1beta1Api as StorageV1beta1Api, type StoragemigrationApiGetAPIGroupRequest, ObjectStoragemigrationApi as StoragemigrationApi, type StoragemigrationV1alpha1ApiCreateStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiDeleteCollectionStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiDeleteStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiGetAPIResourcesRequest, type StoragemigrationV1alpha1ApiListStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiPatchStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiPatchStorageVersionMigrationStatusRequest, type StoragemigrationV1alpha1ApiReadStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiReadStorageVersionMigrationStatusRequest, type StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationStatusRequest, ObjectStoragemigrationV1alpha1Api as StoragemigrationV1alpha1Api, type VersionApiGetCodeRequest, ObjectVersionApi as VersionApi, type WellKnownApiGetServiceAccountIssuerOpenIDConfigurationRequest, ObjectWellKnownApi as WellKnownApi } from './types/ObjectParamAPI.js'; +export { type AdmissionregistrationApiGetAPIGroupRequest, ObjectAdmissionregistrationApi as AdmissionregistrationApi, type AdmissionregistrationV1ApiCreateMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiCreateValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteCollectionMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiDeleteValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiGetAPIResourcesRequest, type AdmissionregistrationV1ApiListMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiListValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiListValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiListValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiPatchMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiPatchValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReadMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiReadValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReplaceMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiReplaceValidatingWebhookConfigurationRequest, ObjectAdmissionregistrationV1Api as AdmissionregistrationV1Api, type AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiGetAPIResourcesRequest, type AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyBindingRequest, ObjectAdmissionregistrationV1alpha1Api as AdmissionregistrationV1alpha1Api, type AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiGetAPIResourcesRequest, type AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyBindingRequest, ObjectAdmissionregistrationV1beta1Api as AdmissionregistrationV1beta1Api, type ApiextensionsApiGetAPIGroupRequest, ObjectApiextensionsApi as ApiextensionsApi, type ApiextensionsV1ApiCreateCustomResourceDefinitionRequest, type ApiextensionsV1ApiDeleteCollectionCustomResourceDefinitionRequest, type ApiextensionsV1ApiDeleteCustomResourceDefinitionRequest, type ApiextensionsV1ApiGetAPIResourcesRequest, type ApiextensionsV1ApiListCustomResourceDefinitionRequest, type ApiextensionsV1ApiPatchCustomResourceDefinitionRequest, type ApiextensionsV1ApiPatchCustomResourceDefinitionStatusRequest, type ApiextensionsV1ApiReadCustomResourceDefinitionRequest, type ApiextensionsV1ApiReadCustomResourceDefinitionStatusRequest, type ApiextensionsV1ApiReplaceCustomResourceDefinitionRequest, type ApiextensionsV1ApiReplaceCustomResourceDefinitionStatusRequest, ObjectApiextensionsV1Api as ApiextensionsV1Api, type ApiregistrationApiGetAPIGroupRequest, ObjectApiregistrationApi as ApiregistrationApi, type ApiregistrationV1ApiCreateAPIServiceRequest, type ApiregistrationV1ApiDeleteAPIServiceRequest, type ApiregistrationV1ApiDeleteCollectionAPIServiceRequest, type ApiregistrationV1ApiGetAPIResourcesRequest, type ApiregistrationV1ApiListAPIServiceRequest, type ApiregistrationV1ApiPatchAPIServiceRequest, type ApiregistrationV1ApiPatchAPIServiceStatusRequest, type ApiregistrationV1ApiReadAPIServiceRequest, type ApiregistrationV1ApiReadAPIServiceStatusRequest, type ApiregistrationV1ApiReplaceAPIServiceRequest, type ApiregistrationV1ApiReplaceAPIServiceStatusRequest, ObjectApiregistrationV1Api as ApiregistrationV1Api, type ApisApiGetAPIVersionsRequest, ObjectApisApi as ApisApi, type AppsApiGetAPIGroupRequest, ObjectAppsApi as AppsApi, type AppsV1ApiCreateNamespacedControllerRevisionRequest, type AppsV1ApiCreateNamespacedDaemonSetRequest, type AppsV1ApiCreateNamespacedDeploymentRequest, type AppsV1ApiCreateNamespacedReplicaSetRequest, type AppsV1ApiCreateNamespacedStatefulSetRequest, type AppsV1ApiDeleteCollectionNamespacedControllerRevisionRequest, type AppsV1ApiDeleteCollectionNamespacedDaemonSetRequest, type AppsV1ApiDeleteCollectionNamespacedDeploymentRequest, type AppsV1ApiDeleteCollectionNamespacedReplicaSetRequest, type AppsV1ApiDeleteCollectionNamespacedStatefulSetRequest, type AppsV1ApiDeleteNamespacedControllerRevisionRequest, type AppsV1ApiDeleteNamespacedDaemonSetRequest, type AppsV1ApiDeleteNamespacedDeploymentRequest, type AppsV1ApiDeleteNamespacedReplicaSetRequest, type AppsV1ApiDeleteNamespacedStatefulSetRequest, type AppsV1ApiGetAPIResourcesRequest, type AppsV1ApiListControllerRevisionForAllNamespacesRequest, type AppsV1ApiListDaemonSetForAllNamespacesRequest, type AppsV1ApiListDeploymentForAllNamespacesRequest, type AppsV1ApiListNamespacedControllerRevisionRequest, type AppsV1ApiListNamespacedDaemonSetRequest, type AppsV1ApiListNamespacedDeploymentRequest, type AppsV1ApiListNamespacedReplicaSetRequest, type AppsV1ApiListNamespacedStatefulSetRequest, type AppsV1ApiListReplicaSetForAllNamespacesRequest, type AppsV1ApiListStatefulSetForAllNamespacesRequest, type AppsV1ApiPatchNamespacedControllerRevisionRequest, type AppsV1ApiPatchNamespacedDaemonSetRequest, type AppsV1ApiPatchNamespacedDaemonSetStatusRequest, type AppsV1ApiPatchNamespacedDeploymentRequest, type AppsV1ApiPatchNamespacedDeploymentScaleRequest, type AppsV1ApiPatchNamespacedDeploymentStatusRequest, type AppsV1ApiPatchNamespacedReplicaSetRequest, type AppsV1ApiPatchNamespacedReplicaSetScaleRequest, type AppsV1ApiPatchNamespacedReplicaSetStatusRequest, type AppsV1ApiPatchNamespacedStatefulSetRequest, type AppsV1ApiPatchNamespacedStatefulSetScaleRequest, type AppsV1ApiPatchNamespacedStatefulSetStatusRequest, type AppsV1ApiReadNamespacedControllerRevisionRequest, type AppsV1ApiReadNamespacedDaemonSetRequest, type AppsV1ApiReadNamespacedDaemonSetStatusRequest, type AppsV1ApiReadNamespacedDeploymentRequest, type AppsV1ApiReadNamespacedDeploymentScaleRequest, type AppsV1ApiReadNamespacedDeploymentStatusRequest, type AppsV1ApiReadNamespacedReplicaSetRequest, type AppsV1ApiReadNamespacedReplicaSetScaleRequest, type AppsV1ApiReadNamespacedReplicaSetStatusRequest, type AppsV1ApiReadNamespacedStatefulSetRequest, type AppsV1ApiReadNamespacedStatefulSetScaleRequest, type AppsV1ApiReadNamespacedStatefulSetStatusRequest, type AppsV1ApiReplaceNamespacedControllerRevisionRequest, type AppsV1ApiReplaceNamespacedDaemonSetRequest, type AppsV1ApiReplaceNamespacedDaemonSetStatusRequest, type AppsV1ApiReplaceNamespacedDeploymentRequest, type AppsV1ApiReplaceNamespacedDeploymentScaleRequest, type AppsV1ApiReplaceNamespacedDeploymentStatusRequest, type AppsV1ApiReplaceNamespacedReplicaSetRequest, type AppsV1ApiReplaceNamespacedReplicaSetScaleRequest, type AppsV1ApiReplaceNamespacedReplicaSetStatusRequest, type AppsV1ApiReplaceNamespacedStatefulSetRequest, type AppsV1ApiReplaceNamespacedStatefulSetScaleRequest, type AppsV1ApiReplaceNamespacedStatefulSetStatusRequest, ObjectAppsV1Api as AppsV1Api, type AuthenticationApiGetAPIGroupRequest, ObjectAuthenticationApi as AuthenticationApi, type AuthenticationV1ApiCreateSelfSubjectReviewRequest, type AuthenticationV1ApiCreateTokenReviewRequest, type AuthenticationV1ApiGetAPIResourcesRequest, ObjectAuthenticationV1Api as AuthenticationV1Api, type AuthorizationApiGetAPIGroupRequest, ObjectAuthorizationApi as AuthorizationApi, type AuthorizationV1ApiCreateNamespacedLocalSubjectAccessReviewRequest, type AuthorizationV1ApiCreateSelfSubjectAccessReviewRequest, type AuthorizationV1ApiCreateSelfSubjectRulesReviewRequest, type AuthorizationV1ApiCreateSubjectAccessReviewRequest, type AuthorizationV1ApiGetAPIResourcesRequest, ObjectAuthorizationV1Api as AuthorizationV1Api, type AutoscalingApiGetAPIGroupRequest, ObjectAutoscalingApi as AutoscalingApi, type AutoscalingV1ApiCreateNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiDeleteNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiGetAPIResourcesRequest, type AutoscalingV1ApiListHorizontalPodAutoscalerForAllNamespacesRequest, type AutoscalingV1ApiListNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, ObjectAutoscalingV1Api as AutoscalingV1Api, type AutoscalingV2ApiCreateNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiDeleteNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiGetAPIResourcesRequest, type AutoscalingV2ApiListHorizontalPodAutoscalerForAllNamespacesRequest, type AutoscalingV2ApiListNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, ObjectAutoscalingV2Api as AutoscalingV2Api, type BatchApiGetAPIGroupRequest, ObjectBatchApi as BatchApi, type BatchV1ApiCreateNamespacedCronJobRequest, type BatchV1ApiCreateNamespacedJobRequest, type BatchV1ApiDeleteCollectionNamespacedCronJobRequest, type BatchV1ApiDeleteCollectionNamespacedJobRequest, type BatchV1ApiDeleteNamespacedCronJobRequest, type BatchV1ApiDeleteNamespacedJobRequest, type BatchV1ApiGetAPIResourcesRequest, type BatchV1ApiListCronJobForAllNamespacesRequest, type BatchV1ApiListJobForAllNamespacesRequest, type BatchV1ApiListNamespacedCronJobRequest, type BatchV1ApiListNamespacedJobRequest, type BatchV1ApiPatchNamespacedCronJobRequest, type BatchV1ApiPatchNamespacedCronJobStatusRequest, type BatchV1ApiPatchNamespacedJobRequest, type BatchV1ApiPatchNamespacedJobStatusRequest, type BatchV1ApiReadNamespacedCronJobRequest, type BatchV1ApiReadNamespacedCronJobStatusRequest, type BatchV1ApiReadNamespacedJobRequest, type BatchV1ApiReadNamespacedJobStatusRequest, type BatchV1ApiReplaceNamespacedCronJobRequest, type BatchV1ApiReplaceNamespacedCronJobStatusRequest, type BatchV1ApiReplaceNamespacedJobRequest, type BatchV1ApiReplaceNamespacedJobStatusRequest, ObjectBatchV1Api as BatchV1Api, type CertificatesApiGetAPIGroupRequest, ObjectCertificatesApi as CertificatesApi, type CertificatesV1ApiCreateCertificateSigningRequestRequest, type CertificatesV1ApiDeleteCertificateSigningRequestRequest, type CertificatesV1ApiDeleteCollectionCertificateSigningRequestRequest, type CertificatesV1ApiGetAPIResourcesRequest, type CertificatesV1ApiListCertificateSigningRequestRequest, type CertificatesV1ApiPatchCertificateSigningRequestRequest, type CertificatesV1ApiPatchCertificateSigningRequestApprovalRequest, type CertificatesV1ApiPatchCertificateSigningRequestStatusRequest, type CertificatesV1ApiReadCertificateSigningRequestRequest, type CertificatesV1ApiReadCertificateSigningRequestApprovalRequest, type CertificatesV1ApiReadCertificateSigningRequestStatusRequest, type CertificatesV1ApiReplaceCertificateSigningRequestRequest, type CertificatesV1ApiReplaceCertificateSigningRequestApprovalRequest, type CertificatesV1ApiReplaceCertificateSigningRequestStatusRequest, ObjectCertificatesV1Api as CertificatesV1Api, type CertificatesV1alpha1ApiCreateClusterTrustBundleRequest, type CertificatesV1alpha1ApiCreateNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiDeleteClusterTrustBundleRequest, type CertificatesV1alpha1ApiDeleteCollectionClusterTrustBundleRequest, type CertificatesV1alpha1ApiDeleteCollectionNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiDeleteNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiGetAPIResourcesRequest, type CertificatesV1alpha1ApiListClusterTrustBundleRequest, type CertificatesV1alpha1ApiListNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiListPodCertificateRequestForAllNamespacesRequest, type CertificatesV1alpha1ApiPatchClusterTrustBundleRequest, type CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestStatusRequest, type CertificatesV1alpha1ApiReadClusterTrustBundleRequest, type CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestStatusRequest, type CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest, type CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestStatusRequest, ObjectCertificatesV1alpha1Api as CertificatesV1alpha1Api, type CertificatesV1beta1ApiCreateClusterTrustBundleRequest, type CertificatesV1beta1ApiDeleteClusterTrustBundleRequest, type CertificatesV1beta1ApiDeleteCollectionClusterTrustBundleRequest, type CertificatesV1beta1ApiGetAPIResourcesRequest, type CertificatesV1beta1ApiListClusterTrustBundleRequest, type CertificatesV1beta1ApiPatchClusterTrustBundleRequest, type CertificatesV1beta1ApiReadClusterTrustBundleRequest, type CertificatesV1beta1ApiReplaceClusterTrustBundleRequest, ObjectCertificatesV1beta1Api as CertificatesV1beta1Api, type CoordinationApiGetAPIGroupRequest, ObjectCoordinationApi as CoordinationApi, type CoordinationV1ApiCreateNamespacedLeaseRequest, type CoordinationV1ApiDeleteCollectionNamespacedLeaseRequest, type CoordinationV1ApiDeleteNamespacedLeaseRequest, type CoordinationV1ApiGetAPIResourcesRequest, type CoordinationV1ApiListLeaseForAllNamespacesRequest, type CoordinationV1ApiListNamespacedLeaseRequest, type CoordinationV1ApiPatchNamespacedLeaseRequest, type CoordinationV1ApiReadNamespacedLeaseRequest, type CoordinationV1ApiReplaceNamespacedLeaseRequest, ObjectCoordinationV1Api as CoordinationV1Api, type CoordinationV1alpha2ApiCreateNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiDeleteCollectionNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiDeleteNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiGetAPIResourcesRequest, type CoordinationV1alpha2ApiListLeaseCandidateForAllNamespacesRequest, type CoordinationV1alpha2ApiListNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiPatchNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiReadNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiReplaceNamespacedLeaseCandidateRequest, ObjectCoordinationV1alpha2Api as CoordinationV1alpha2Api, type CoordinationV1beta1ApiCreateNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiDeleteCollectionNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiDeleteNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiGetAPIResourcesRequest, type CoordinationV1beta1ApiListLeaseCandidateForAllNamespacesRequest, type CoordinationV1beta1ApiListNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiPatchNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiReadNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiReplaceNamespacedLeaseCandidateRequest, ObjectCoordinationV1beta1Api as CoordinationV1beta1Api, type CoreApiGetAPIVersionsRequest, ObjectCoreApi as CoreApi, type CoreV1ApiConnectDeleteNamespacedPodProxyRequest, type CoreV1ApiConnectDeleteNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectDeleteNamespacedServiceProxyRequest, type CoreV1ApiConnectDeleteNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectDeleteNodeProxyRequest, type CoreV1ApiConnectDeleteNodeProxyWithPathRequest, type CoreV1ApiConnectGetNamespacedPodAttachRequest, type CoreV1ApiConnectGetNamespacedPodExecRequest, type CoreV1ApiConnectGetNamespacedPodPortforwardRequest, type CoreV1ApiConnectGetNamespacedPodProxyRequest, type CoreV1ApiConnectGetNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectGetNamespacedServiceProxyRequest, type CoreV1ApiConnectGetNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectGetNodeProxyRequest, type CoreV1ApiConnectGetNodeProxyWithPathRequest, type CoreV1ApiConnectHeadNamespacedPodProxyRequest, type CoreV1ApiConnectHeadNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectHeadNamespacedServiceProxyRequest, type CoreV1ApiConnectHeadNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectHeadNodeProxyRequest, type CoreV1ApiConnectHeadNodeProxyWithPathRequest, type CoreV1ApiConnectOptionsNamespacedPodProxyRequest, type CoreV1ApiConnectOptionsNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectOptionsNamespacedServiceProxyRequest, type CoreV1ApiConnectOptionsNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectOptionsNodeProxyRequest, type CoreV1ApiConnectOptionsNodeProxyWithPathRequest, type CoreV1ApiConnectPatchNamespacedPodProxyRequest, type CoreV1ApiConnectPatchNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPatchNamespacedServiceProxyRequest, type CoreV1ApiConnectPatchNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPatchNodeProxyRequest, type CoreV1ApiConnectPatchNodeProxyWithPathRequest, type CoreV1ApiConnectPostNamespacedPodAttachRequest, type CoreV1ApiConnectPostNamespacedPodExecRequest, type CoreV1ApiConnectPostNamespacedPodPortforwardRequest, type CoreV1ApiConnectPostNamespacedPodProxyRequest, type CoreV1ApiConnectPostNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPostNamespacedServiceProxyRequest, type CoreV1ApiConnectPostNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPostNodeProxyRequest, type CoreV1ApiConnectPostNodeProxyWithPathRequest, type CoreV1ApiConnectPutNamespacedPodProxyRequest, type CoreV1ApiConnectPutNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPutNamespacedServiceProxyRequest, type CoreV1ApiConnectPutNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPutNodeProxyRequest, type CoreV1ApiConnectPutNodeProxyWithPathRequest, type CoreV1ApiCreateNamespaceRequest, type CoreV1ApiCreateNamespacedBindingRequest, type CoreV1ApiCreateNamespacedConfigMapRequest, type CoreV1ApiCreateNamespacedEndpointsRequest, type CoreV1ApiCreateNamespacedEventRequest, type CoreV1ApiCreateNamespacedLimitRangeRequest, type CoreV1ApiCreateNamespacedPersistentVolumeClaimRequest, type CoreV1ApiCreateNamespacedPodRequest, type CoreV1ApiCreateNamespacedPodBindingRequest, type CoreV1ApiCreateNamespacedPodEvictionRequest, type CoreV1ApiCreateNamespacedPodTemplateRequest, type CoreV1ApiCreateNamespacedReplicationControllerRequest, type CoreV1ApiCreateNamespacedResourceQuotaRequest, type CoreV1ApiCreateNamespacedSecretRequest, type CoreV1ApiCreateNamespacedServiceRequest, type CoreV1ApiCreateNamespacedServiceAccountRequest, type CoreV1ApiCreateNamespacedServiceAccountTokenRequest, type CoreV1ApiCreateNodeRequest, type CoreV1ApiCreatePersistentVolumeRequest, type CoreV1ApiDeleteCollectionNamespacedConfigMapRequest, type CoreV1ApiDeleteCollectionNamespacedEndpointsRequest, type CoreV1ApiDeleteCollectionNamespacedEventRequest, type CoreV1ApiDeleteCollectionNamespacedLimitRangeRequest, type CoreV1ApiDeleteCollectionNamespacedPersistentVolumeClaimRequest, type CoreV1ApiDeleteCollectionNamespacedPodRequest, type CoreV1ApiDeleteCollectionNamespacedPodTemplateRequest, type CoreV1ApiDeleteCollectionNamespacedReplicationControllerRequest, type CoreV1ApiDeleteCollectionNamespacedResourceQuotaRequest, type CoreV1ApiDeleteCollectionNamespacedSecretRequest, type CoreV1ApiDeleteCollectionNamespacedServiceRequest, type CoreV1ApiDeleteCollectionNamespacedServiceAccountRequest, type CoreV1ApiDeleteCollectionNodeRequest, type CoreV1ApiDeleteCollectionPersistentVolumeRequest, type CoreV1ApiDeleteNamespaceRequest, type CoreV1ApiDeleteNamespacedConfigMapRequest, type CoreV1ApiDeleteNamespacedEndpointsRequest, type CoreV1ApiDeleteNamespacedEventRequest, type CoreV1ApiDeleteNamespacedLimitRangeRequest, type CoreV1ApiDeleteNamespacedPersistentVolumeClaimRequest, type CoreV1ApiDeleteNamespacedPodRequest, type CoreV1ApiDeleteNamespacedPodTemplateRequest, type CoreV1ApiDeleteNamespacedReplicationControllerRequest, type CoreV1ApiDeleteNamespacedResourceQuotaRequest, type CoreV1ApiDeleteNamespacedSecretRequest, type CoreV1ApiDeleteNamespacedServiceRequest, type CoreV1ApiDeleteNamespacedServiceAccountRequest, type CoreV1ApiDeleteNodeRequest, type CoreV1ApiDeletePersistentVolumeRequest, type CoreV1ApiGetAPIResourcesRequest, type CoreV1ApiListComponentStatusRequest, type CoreV1ApiListConfigMapForAllNamespacesRequest, type CoreV1ApiListEndpointsForAllNamespacesRequest, type CoreV1ApiListEventForAllNamespacesRequest, type CoreV1ApiListLimitRangeForAllNamespacesRequest, type CoreV1ApiListNamespaceRequest, type CoreV1ApiListNamespacedConfigMapRequest, type CoreV1ApiListNamespacedEndpointsRequest, type CoreV1ApiListNamespacedEventRequest, type CoreV1ApiListNamespacedLimitRangeRequest, type CoreV1ApiListNamespacedPersistentVolumeClaimRequest, type CoreV1ApiListNamespacedPodRequest, type CoreV1ApiListNamespacedPodTemplateRequest, type CoreV1ApiListNamespacedReplicationControllerRequest, type CoreV1ApiListNamespacedResourceQuotaRequest, type CoreV1ApiListNamespacedSecretRequest, type CoreV1ApiListNamespacedServiceRequest, type CoreV1ApiListNamespacedServiceAccountRequest, type CoreV1ApiListNodeRequest, type CoreV1ApiListPersistentVolumeRequest, type CoreV1ApiListPersistentVolumeClaimForAllNamespacesRequest, type CoreV1ApiListPodForAllNamespacesRequest, type CoreV1ApiListPodTemplateForAllNamespacesRequest, type CoreV1ApiListReplicationControllerForAllNamespacesRequest, type CoreV1ApiListResourceQuotaForAllNamespacesRequest, type CoreV1ApiListSecretForAllNamespacesRequest, type CoreV1ApiListServiceAccountForAllNamespacesRequest, type CoreV1ApiListServiceForAllNamespacesRequest, type CoreV1ApiPatchNamespaceRequest, type CoreV1ApiPatchNamespaceStatusRequest, type CoreV1ApiPatchNamespacedConfigMapRequest, type CoreV1ApiPatchNamespacedEndpointsRequest, type CoreV1ApiPatchNamespacedEventRequest, type CoreV1ApiPatchNamespacedLimitRangeRequest, type CoreV1ApiPatchNamespacedPersistentVolumeClaimRequest, type CoreV1ApiPatchNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiPatchNamespacedPodRequest, type CoreV1ApiPatchNamespacedPodEphemeralcontainersRequest, type CoreV1ApiPatchNamespacedPodResizeRequest, type CoreV1ApiPatchNamespacedPodStatusRequest, type CoreV1ApiPatchNamespacedPodTemplateRequest, type CoreV1ApiPatchNamespacedReplicationControllerRequest, type CoreV1ApiPatchNamespacedReplicationControllerScaleRequest, type CoreV1ApiPatchNamespacedReplicationControllerStatusRequest, type CoreV1ApiPatchNamespacedResourceQuotaRequest, type CoreV1ApiPatchNamespacedResourceQuotaStatusRequest, type CoreV1ApiPatchNamespacedSecretRequest, type CoreV1ApiPatchNamespacedServiceRequest, type CoreV1ApiPatchNamespacedServiceAccountRequest, type CoreV1ApiPatchNamespacedServiceStatusRequest, type CoreV1ApiPatchNodeRequest, type CoreV1ApiPatchNodeStatusRequest, type CoreV1ApiPatchPersistentVolumeRequest, type CoreV1ApiPatchPersistentVolumeStatusRequest, type CoreV1ApiReadComponentStatusRequest, type CoreV1ApiReadNamespaceRequest, type CoreV1ApiReadNamespaceStatusRequest, type CoreV1ApiReadNamespacedConfigMapRequest, type CoreV1ApiReadNamespacedEndpointsRequest, type CoreV1ApiReadNamespacedEventRequest, type CoreV1ApiReadNamespacedLimitRangeRequest, type CoreV1ApiReadNamespacedPersistentVolumeClaimRequest, type CoreV1ApiReadNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiReadNamespacedPodRequest, type CoreV1ApiReadNamespacedPodEphemeralcontainersRequest, type CoreV1ApiReadNamespacedPodLogRequest, type CoreV1ApiReadNamespacedPodResizeRequest, type CoreV1ApiReadNamespacedPodStatusRequest, type CoreV1ApiReadNamespacedPodTemplateRequest, type CoreV1ApiReadNamespacedReplicationControllerRequest, type CoreV1ApiReadNamespacedReplicationControllerScaleRequest, type CoreV1ApiReadNamespacedReplicationControllerStatusRequest, type CoreV1ApiReadNamespacedResourceQuotaRequest, type CoreV1ApiReadNamespacedResourceQuotaStatusRequest, type CoreV1ApiReadNamespacedSecretRequest, type CoreV1ApiReadNamespacedServiceRequest, type CoreV1ApiReadNamespacedServiceAccountRequest, type CoreV1ApiReadNamespacedServiceStatusRequest, type CoreV1ApiReadNodeRequest, type CoreV1ApiReadNodeStatusRequest, type CoreV1ApiReadPersistentVolumeRequest, type CoreV1ApiReadPersistentVolumeStatusRequest, type CoreV1ApiReplaceNamespaceRequest, type CoreV1ApiReplaceNamespaceFinalizeRequest, type CoreV1ApiReplaceNamespaceStatusRequest, type CoreV1ApiReplaceNamespacedConfigMapRequest, type CoreV1ApiReplaceNamespacedEndpointsRequest, type CoreV1ApiReplaceNamespacedEventRequest, type CoreV1ApiReplaceNamespacedLimitRangeRequest, type CoreV1ApiReplaceNamespacedPersistentVolumeClaimRequest, type CoreV1ApiReplaceNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiReplaceNamespacedPodRequest, type CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest, type CoreV1ApiReplaceNamespacedPodResizeRequest, type CoreV1ApiReplaceNamespacedPodStatusRequest, type CoreV1ApiReplaceNamespacedPodTemplateRequest, type CoreV1ApiReplaceNamespacedReplicationControllerRequest, type CoreV1ApiReplaceNamespacedReplicationControllerScaleRequest, type CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest, type CoreV1ApiReplaceNamespacedResourceQuotaRequest, type CoreV1ApiReplaceNamespacedResourceQuotaStatusRequest, type CoreV1ApiReplaceNamespacedSecretRequest, type CoreV1ApiReplaceNamespacedServiceRequest, type CoreV1ApiReplaceNamespacedServiceAccountRequest, type CoreV1ApiReplaceNamespacedServiceStatusRequest, type CoreV1ApiReplaceNodeRequest, type CoreV1ApiReplaceNodeStatusRequest, type CoreV1ApiReplacePersistentVolumeRequest, type CoreV1ApiReplacePersistentVolumeStatusRequest, ObjectCoreV1Api as CoreV1Api, type CustomObjectsApiCreateClusterCustomObjectRequest, type CustomObjectsApiCreateNamespacedCustomObjectRequest, type CustomObjectsApiDeleteClusterCustomObjectRequest, type CustomObjectsApiDeleteCollectionClusterCustomObjectRequest, type CustomObjectsApiDeleteCollectionNamespacedCustomObjectRequest, type CustomObjectsApiDeleteNamespacedCustomObjectRequest, type CustomObjectsApiGetAPIResourcesRequest, type CustomObjectsApiGetClusterCustomObjectRequest, type CustomObjectsApiGetClusterCustomObjectScaleRequest, type CustomObjectsApiGetClusterCustomObjectStatusRequest, type CustomObjectsApiGetNamespacedCustomObjectRequest, type CustomObjectsApiGetNamespacedCustomObjectScaleRequest, type CustomObjectsApiGetNamespacedCustomObjectStatusRequest, type CustomObjectsApiListClusterCustomObjectRequest, type CustomObjectsApiListCustomObjectForAllNamespacesRequest, type CustomObjectsApiListNamespacedCustomObjectRequest, type CustomObjectsApiPatchClusterCustomObjectRequest, type CustomObjectsApiPatchClusterCustomObjectScaleRequest, type CustomObjectsApiPatchClusterCustomObjectStatusRequest, type CustomObjectsApiPatchNamespacedCustomObjectRequest, type CustomObjectsApiPatchNamespacedCustomObjectScaleRequest, type CustomObjectsApiPatchNamespacedCustomObjectStatusRequest, type CustomObjectsApiReplaceClusterCustomObjectRequest, type CustomObjectsApiReplaceClusterCustomObjectScaleRequest, type CustomObjectsApiReplaceClusterCustomObjectStatusRequest, type CustomObjectsApiReplaceNamespacedCustomObjectRequest, type CustomObjectsApiReplaceNamespacedCustomObjectScaleRequest, type CustomObjectsApiReplaceNamespacedCustomObjectStatusRequest, ObjectCustomObjectsApi as CustomObjectsApi, type DiscoveryApiGetAPIGroupRequest, ObjectDiscoveryApi as DiscoveryApi, type DiscoveryV1ApiCreateNamespacedEndpointSliceRequest, type DiscoveryV1ApiDeleteCollectionNamespacedEndpointSliceRequest, type DiscoveryV1ApiDeleteNamespacedEndpointSliceRequest, type DiscoveryV1ApiGetAPIResourcesRequest, type DiscoveryV1ApiListEndpointSliceForAllNamespacesRequest, type DiscoveryV1ApiListNamespacedEndpointSliceRequest, type DiscoveryV1ApiPatchNamespacedEndpointSliceRequest, type DiscoveryV1ApiReadNamespacedEndpointSliceRequest, type DiscoveryV1ApiReplaceNamespacedEndpointSliceRequest, ObjectDiscoveryV1Api as DiscoveryV1Api, type EventsApiGetAPIGroupRequest, ObjectEventsApi as EventsApi, type EventsV1ApiCreateNamespacedEventRequest, type EventsV1ApiDeleteCollectionNamespacedEventRequest, type EventsV1ApiDeleteNamespacedEventRequest, type EventsV1ApiGetAPIResourcesRequest, type EventsV1ApiListEventForAllNamespacesRequest, type EventsV1ApiListNamespacedEventRequest, type EventsV1ApiPatchNamespacedEventRequest, type EventsV1ApiReadNamespacedEventRequest, type EventsV1ApiReplaceNamespacedEventRequest, ObjectEventsV1Api as EventsV1Api, type FlowcontrolApiserverApiGetAPIGroupRequest, ObjectFlowcontrolApiserverApi as FlowcontrolApiserverApi, type FlowcontrolApiserverV1ApiCreateFlowSchemaRequest, type FlowcontrolApiserverV1ApiCreatePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiDeleteCollectionFlowSchemaRequest, type FlowcontrolApiserverV1ApiDeleteCollectionPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiDeleteFlowSchemaRequest, type FlowcontrolApiserverV1ApiDeletePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiGetAPIResourcesRequest, type FlowcontrolApiserverV1ApiListFlowSchemaRequest, type FlowcontrolApiserverV1ApiListPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiPatchFlowSchemaRequest, type FlowcontrolApiserverV1ApiPatchFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationStatusRequest, type FlowcontrolApiserverV1ApiReadFlowSchemaRequest, type FlowcontrolApiserverV1ApiReadFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationStatusRequest, type FlowcontrolApiserverV1ApiReplaceFlowSchemaRequest, type FlowcontrolApiserverV1ApiReplaceFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationStatusRequest, ObjectFlowcontrolApiserverV1Api as FlowcontrolApiserverV1Api, type InternalApiserverApiGetAPIGroupRequest, ObjectInternalApiserverApi as InternalApiserverApi, type InternalApiserverV1alpha1ApiCreateStorageVersionRequest, type InternalApiserverV1alpha1ApiDeleteCollectionStorageVersionRequest, type InternalApiserverV1alpha1ApiDeleteStorageVersionRequest, type InternalApiserverV1alpha1ApiGetAPIResourcesRequest, type InternalApiserverV1alpha1ApiListStorageVersionRequest, type InternalApiserverV1alpha1ApiPatchStorageVersionRequest, type InternalApiserverV1alpha1ApiPatchStorageVersionStatusRequest, type InternalApiserverV1alpha1ApiReadStorageVersionRequest, type InternalApiserverV1alpha1ApiReadStorageVersionStatusRequest, type InternalApiserverV1alpha1ApiReplaceStorageVersionRequest, type InternalApiserverV1alpha1ApiReplaceStorageVersionStatusRequest, ObjectInternalApiserverV1alpha1Api as InternalApiserverV1alpha1Api, type LogsApiLogFileHandlerRequest, type LogsApiLogFileListHandlerRequest, ObjectLogsApi as LogsApi, type NetworkingApiGetAPIGroupRequest, ObjectNetworkingApi as NetworkingApi, type NetworkingV1ApiCreateIPAddressRequest, type NetworkingV1ApiCreateIngressClassRequest, type NetworkingV1ApiCreateNamespacedIngressRequest, type NetworkingV1ApiCreateNamespacedNetworkPolicyRequest, type NetworkingV1ApiCreateServiceCIDRRequest, type NetworkingV1ApiDeleteCollectionIPAddressRequest, type NetworkingV1ApiDeleteCollectionIngressClassRequest, type NetworkingV1ApiDeleteCollectionNamespacedIngressRequest, type NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest, type NetworkingV1ApiDeleteCollectionServiceCIDRRequest, type NetworkingV1ApiDeleteIPAddressRequest, type NetworkingV1ApiDeleteIngressClassRequest, type NetworkingV1ApiDeleteNamespacedIngressRequest, type NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest, type NetworkingV1ApiDeleteServiceCIDRRequest, type NetworkingV1ApiGetAPIResourcesRequest, type NetworkingV1ApiListIPAddressRequest, type NetworkingV1ApiListIngressClassRequest, type NetworkingV1ApiListIngressForAllNamespacesRequest, type NetworkingV1ApiListNamespacedIngressRequest, type NetworkingV1ApiListNamespacedNetworkPolicyRequest, type NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest, type NetworkingV1ApiListServiceCIDRRequest, type NetworkingV1ApiPatchIPAddressRequest, type NetworkingV1ApiPatchIngressClassRequest, type NetworkingV1ApiPatchNamespacedIngressRequest, type NetworkingV1ApiPatchNamespacedIngressStatusRequest, type NetworkingV1ApiPatchNamespacedNetworkPolicyRequest, type NetworkingV1ApiPatchServiceCIDRRequest, type NetworkingV1ApiPatchServiceCIDRStatusRequest, type NetworkingV1ApiReadIPAddressRequest, type NetworkingV1ApiReadIngressClassRequest, type NetworkingV1ApiReadNamespacedIngressRequest, type NetworkingV1ApiReadNamespacedIngressStatusRequest, type NetworkingV1ApiReadNamespacedNetworkPolicyRequest, type NetworkingV1ApiReadServiceCIDRRequest, type NetworkingV1ApiReadServiceCIDRStatusRequest, type NetworkingV1ApiReplaceIPAddressRequest, type NetworkingV1ApiReplaceIngressClassRequest, type NetworkingV1ApiReplaceNamespacedIngressRequest, type NetworkingV1ApiReplaceNamespacedIngressStatusRequest, type NetworkingV1ApiReplaceNamespacedNetworkPolicyRequest, type NetworkingV1ApiReplaceServiceCIDRRequest, type NetworkingV1ApiReplaceServiceCIDRStatusRequest, ObjectNetworkingV1Api as NetworkingV1Api, type NetworkingV1beta1ApiCreateIPAddressRequest, type NetworkingV1beta1ApiCreateServiceCIDRRequest, type NetworkingV1beta1ApiDeleteCollectionIPAddressRequest, type NetworkingV1beta1ApiDeleteCollectionServiceCIDRRequest, type NetworkingV1beta1ApiDeleteIPAddressRequest, type NetworkingV1beta1ApiDeleteServiceCIDRRequest, type NetworkingV1beta1ApiGetAPIResourcesRequest, type NetworkingV1beta1ApiListIPAddressRequest, type NetworkingV1beta1ApiListServiceCIDRRequest, type NetworkingV1beta1ApiPatchIPAddressRequest, type NetworkingV1beta1ApiPatchServiceCIDRRequest, type NetworkingV1beta1ApiPatchServiceCIDRStatusRequest, type NetworkingV1beta1ApiReadIPAddressRequest, type NetworkingV1beta1ApiReadServiceCIDRRequest, type NetworkingV1beta1ApiReadServiceCIDRStatusRequest, type NetworkingV1beta1ApiReplaceIPAddressRequest, type NetworkingV1beta1ApiReplaceServiceCIDRRequest, type NetworkingV1beta1ApiReplaceServiceCIDRStatusRequest, ObjectNetworkingV1beta1Api as NetworkingV1beta1Api, type NodeApiGetAPIGroupRequest, ObjectNodeApi as NodeApi, type NodeV1ApiCreateRuntimeClassRequest, type NodeV1ApiDeleteCollectionRuntimeClassRequest, type NodeV1ApiDeleteRuntimeClassRequest, type NodeV1ApiGetAPIResourcesRequest, type NodeV1ApiListRuntimeClassRequest, type NodeV1ApiPatchRuntimeClassRequest, type NodeV1ApiReadRuntimeClassRequest, type NodeV1ApiReplaceRuntimeClassRequest, ObjectNodeV1Api as NodeV1Api, type OpenidApiGetServiceAccountIssuerOpenIDKeysetRequest, ObjectOpenidApi as OpenidApi, type PolicyApiGetAPIGroupRequest, ObjectPolicyApi as PolicyApi, type PolicyV1ApiCreateNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiDeleteCollectionNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiDeleteNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiGetAPIResourcesRequest, type PolicyV1ApiListNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiListPodDisruptionBudgetForAllNamespacesRequest, type PolicyV1ApiPatchNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiPatchNamespacedPodDisruptionBudgetStatusRequest, type PolicyV1ApiReadNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiReadNamespacedPodDisruptionBudgetStatusRequest, type PolicyV1ApiReplaceNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiReplaceNamespacedPodDisruptionBudgetStatusRequest, ObjectPolicyV1Api as PolicyV1Api, type RbacAuthorizationApiGetAPIGroupRequest, ObjectRbacAuthorizationApi as RbacAuthorizationApi, type RbacAuthorizationV1ApiCreateClusterRoleRequest, type RbacAuthorizationV1ApiCreateClusterRoleBindingRequest, type RbacAuthorizationV1ApiCreateNamespacedRoleRequest, type RbacAuthorizationV1ApiCreateNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiDeleteClusterRoleRequest, type RbacAuthorizationV1ApiDeleteClusterRoleBindingRequest, type RbacAuthorizationV1ApiDeleteCollectionClusterRoleRequest, type RbacAuthorizationV1ApiDeleteCollectionClusterRoleBindingRequest, type RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleRequest, type RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiDeleteNamespacedRoleRequest, type RbacAuthorizationV1ApiDeleteNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiGetAPIResourcesRequest, type RbacAuthorizationV1ApiListClusterRoleRequest, type RbacAuthorizationV1ApiListClusterRoleBindingRequest, type RbacAuthorizationV1ApiListNamespacedRoleRequest, type RbacAuthorizationV1ApiListNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiListRoleBindingForAllNamespacesRequest, type RbacAuthorizationV1ApiListRoleForAllNamespacesRequest, type RbacAuthorizationV1ApiPatchClusterRoleRequest, type RbacAuthorizationV1ApiPatchClusterRoleBindingRequest, type RbacAuthorizationV1ApiPatchNamespacedRoleRequest, type RbacAuthorizationV1ApiPatchNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiReadClusterRoleRequest, type RbacAuthorizationV1ApiReadClusterRoleBindingRequest, type RbacAuthorizationV1ApiReadNamespacedRoleRequest, type RbacAuthorizationV1ApiReadNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiReplaceClusterRoleRequest, type RbacAuthorizationV1ApiReplaceClusterRoleBindingRequest, type RbacAuthorizationV1ApiReplaceNamespacedRoleRequest, type RbacAuthorizationV1ApiReplaceNamespacedRoleBindingRequest, ObjectRbacAuthorizationV1Api as RbacAuthorizationV1Api, type ResourceApiGetAPIGroupRequest, ObjectResourceApi as ResourceApi, type ResourceV1ApiCreateDeviceClassRequest, type ResourceV1ApiCreateNamespacedResourceClaimRequest, type ResourceV1ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1ApiCreateResourceSliceRequest, type ResourceV1ApiDeleteCollectionDeviceClassRequest, type ResourceV1ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1ApiDeleteCollectionResourceSliceRequest, type ResourceV1ApiDeleteDeviceClassRequest, type ResourceV1ApiDeleteNamespacedResourceClaimRequest, type ResourceV1ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1ApiDeleteResourceSliceRequest, type ResourceV1ApiGetAPIResourcesRequest, type ResourceV1ApiListDeviceClassRequest, type ResourceV1ApiListNamespacedResourceClaimRequest, type ResourceV1ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1ApiListResourceClaimForAllNamespacesRequest, type ResourceV1ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1ApiListResourceSliceRequest, type ResourceV1ApiPatchDeviceClassRequest, type ResourceV1ApiPatchNamespacedResourceClaimRequest, type ResourceV1ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1ApiPatchResourceSliceRequest, type ResourceV1ApiReadDeviceClassRequest, type ResourceV1ApiReadNamespacedResourceClaimRequest, type ResourceV1ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1ApiReadResourceSliceRequest, type ResourceV1ApiReplaceDeviceClassRequest, type ResourceV1ApiReplaceNamespacedResourceClaimRequest, type ResourceV1ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1ApiReplaceResourceSliceRequest, ObjectResourceV1Api as ResourceV1Api, type ResourceV1alpha3ApiCreateDeviceTaintRuleRequest, type ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest, type ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest, type ResourceV1alpha3ApiGetAPIResourcesRequest, type ResourceV1alpha3ApiListDeviceTaintRuleRequest, type ResourceV1alpha3ApiPatchDeviceTaintRuleRequest, type ResourceV1alpha3ApiReadDeviceTaintRuleRequest, type ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest, ObjectResourceV1alpha3Api as ResourceV1alpha3Api, type ResourceV1beta1ApiCreateDeviceClassRequest, type ResourceV1beta1ApiCreateNamespacedResourceClaimRequest, type ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiCreateResourceSliceRequest, type ResourceV1beta1ApiDeleteCollectionDeviceClassRequest, type ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiDeleteCollectionResourceSliceRequest, type ResourceV1beta1ApiDeleteDeviceClassRequest, type ResourceV1beta1ApiDeleteNamespacedResourceClaimRequest, type ResourceV1beta1ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiDeleteResourceSliceRequest, type ResourceV1beta1ApiGetAPIResourcesRequest, type ResourceV1beta1ApiListDeviceClassRequest, type ResourceV1beta1ApiListNamespacedResourceClaimRequest, type ResourceV1beta1ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiListResourceClaimForAllNamespacesRequest, type ResourceV1beta1ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1beta1ApiListResourceSliceRequest, type ResourceV1beta1ApiPatchDeviceClassRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiPatchResourceSliceRequest, type ResourceV1beta1ApiReadDeviceClassRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiReadResourceSliceRequest, type ResourceV1beta1ApiReplaceDeviceClassRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiReplaceResourceSliceRequest, ObjectResourceV1beta1Api as ResourceV1beta1Api, type ResourceV1beta2ApiCreateDeviceClassRequest, type ResourceV1beta2ApiCreateNamespacedResourceClaimRequest, type ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiCreateResourceSliceRequest, type ResourceV1beta2ApiDeleteCollectionDeviceClassRequest, type ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiDeleteCollectionResourceSliceRequest, type ResourceV1beta2ApiDeleteDeviceClassRequest, type ResourceV1beta2ApiDeleteNamespacedResourceClaimRequest, type ResourceV1beta2ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiDeleteResourceSliceRequest, type ResourceV1beta2ApiGetAPIResourcesRequest, type ResourceV1beta2ApiListDeviceClassRequest, type ResourceV1beta2ApiListNamespacedResourceClaimRequest, type ResourceV1beta2ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiListResourceClaimForAllNamespacesRequest, type ResourceV1beta2ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1beta2ApiListResourceSliceRequest, type ResourceV1beta2ApiPatchDeviceClassRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiPatchResourceSliceRequest, type ResourceV1beta2ApiReadDeviceClassRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiReadResourceSliceRequest, type ResourceV1beta2ApiReplaceDeviceClassRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiReplaceResourceSliceRequest, ObjectResourceV1beta2Api as ResourceV1beta2Api, type SchedulingApiGetAPIGroupRequest, ObjectSchedulingApi as SchedulingApi, type SchedulingV1ApiCreatePriorityClassRequest, type SchedulingV1ApiDeleteCollectionPriorityClassRequest, type SchedulingV1ApiDeletePriorityClassRequest, type SchedulingV1ApiGetAPIResourcesRequest, type SchedulingV1ApiListPriorityClassRequest, type SchedulingV1ApiPatchPriorityClassRequest, type SchedulingV1ApiReadPriorityClassRequest, type SchedulingV1ApiReplacePriorityClassRequest, ObjectSchedulingV1Api as SchedulingV1Api, type StorageApiGetAPIGroupRequest, ObjectStorageApi as StorageApi, type StorageV1ApiCreateCSIDriverRequest, type StorageV1ApiCreateCSINodeRequest, type StorageV1ApiCreateNamespacedCSIStorageCapacityRequest, type StorageV1ApiCreateStorageClassRequest, type StorageV1ApiCreateVolumeAttachmentRequest, type StorageV1ApiCreateVolumeAttributesClassRequest, type StorageV1ApiDeleteCSIDriverRequest, type StorageV1ApiDeleteCSINodeRequest, type StorageV1ApiDeleteCollectionCSIDriverRequest, type StorageV1ApiDeleteCollectionCSINodeRequest, type StorageV1ApiDeleteCollectionNamespacedCSIStorageCapacityRequest, type StorageV1ApiDeleteCollectionStorageClassRequest, type StorageV1ApiDeleteCollectionVolumeAttachmentRequest, type StorageV1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1ApiDeleteNamespacedCSIStorageCapacityRequest, type StorageV1ApiDeleteStorageClassRequest, type StorageV1ApiDeleteVolumeAttachmentRequest, type StorageV1ApiDeleteVolumeAttributesClassRequest, type StorageV1ApiGetAPIResourcesRequest, type StorageV1ApiListCSIDriverRequest, type StorageV1ApiListCSINodeRequest, type StorageV1ApiListCSIStorageCapacityForAllNamespacesRequest, type StorageV1ApiListNamespacedCSIStorageCapacityRequest, type StorageV1ApiListStorageClassRequest, type StorageV1ApiListVolumeAttachmentRequest, type StorageV1ApiListVolumeAttributesClassRequest, type StorageV1ApiPatchCSIDriverRequest, type StorageV1ApiPatchCSINodeRequest, type StorageV1ApiPatchNamespacedCSIStorageCapacityRequest, type StorageV1ApiPatchStorageClassRequest, type StorageV1ApiPatchVolumeAttachmentRequest, type StorageV1ApiPatchVolumeAttachmentStatusRequest, type StorageV1ApiPatchVolumeAttributesClassRequest, type StorageV1ApiReadCSIDriverRequest, type StorageV1ApiReadCSINodeRequest, type StorageV1ApiReadNamespacedCSIStorageCapacityRequest, type StorageV1ApiReadStorageClassRequest, type StorageV1ApiReadVolumeAttachmentRequest, type StorageV1ApiReadVolumeAttachmentStatusRequest, type StorageV1ApiReadVolumeAttributesClassRequest, type StorageV1ApiReplaceCSIDriverRequest, type StorageV1ApiReplaceCSINodeRequest, type StorageV1ApiReplaceNamespacedCSIStorageCapacityRequest, type StorageV1ApiReplaceStorageClassRequest, type StorageV1ApiReplaceVolumeAttachmentRequest, type StorageV1ApiReplaceVolumeAttachmentStatusRequest, type StorageV1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1Api as StorageV1Api, type StorageV1alpha1ApiCreateVolumeAttributesClassRequest, type StorageV1alpha1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1alpha1ApiDeleteVolumeAttributesClassRequest, type StorageV1alpha1ApiGetAPIResourcesRequest, type StorageV1alpha1ApiListVolumeAttributesClassRequest, type StorageV1alpha1ApiPatchVolumeAttributesClassRequest, type StorageV1alpha1ApiReadVolumeAttributesClassRequest, type StorageV1alpha1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1alpha1Api as StorageV1alpha1Api, type StorageV1beta1ApiCreateVolumeAttributesClassRequest, type StorageV1beta1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1beta1ApiDeleteVolumeAttributesClassRequest, type StorageV1beta1ApiGetAPIResourcesRequest, type StorageV1beta1ApiListVolumeAttributesClassRequest, type StorageV1beta1ApiPatchVolumeAttributesClassRequest, type StorageV1beta1ApiReadVolumeAttributesClassRequest, type StorageV1beta1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1beta1Api as StorageV1beta1Api, type StoragemigrationApiGetAPIGroupRequest, ObjectStoragemigrationApi as StoragemigrationApi, type StoragemigrationV1alpha1ApiCreateStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiDeleteCollectionStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiDeleteStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiGetAPIResourcesRequest, type StoragemigrationV1alpha1ApiListStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiPatchStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiPatchStorageVersionMigrationStatusRequest, type StoragemigrationV1alpha1ApiReadStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiReadStorageVersionMigrationStatusRequest, type StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationStatusRequest, ObjectStoragemigrationV1alpha1Api as StoragemigrationV1alpha1Api, type VersionApiGetCodeRequest, ObjectVersionApi as VersionApi, type WellKnownApiGetServiceAccountIssuerOpenIDConfigurationRequest, ObjectWellKnownApi as WellKnownApi } from './types/ObjectParamAPI.js'; diff --git a/src/gen/models/AdmissionregistrationV1ServiceReference.ts b/src/gen/models/AdmissionregistrationV1ServiceReference.ts index 1226a3684a..24db4d98eb 100644 --- a/src/gen/models/AdmissionregistrationV1ServiceReference.ts +++ b/src/gen/models/AdmissionregistrationV1ServiceReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/AdmissionregistrationV1WebhookClientConfig.ts b/src/gen/models/AdmissionregistrationV1WebhookClientConfig.ts index 44691b5719..d48d13abb7 100644 --- a/src/gen/models/AdmissionregistrationV1WebhookClientConfig.ts +++ b/src/gen/models/AdmissionregistrationV1WebhookClientConfig.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ApiextensionsV1ServiceReference.ts b/src/gen/models/ApiextensionsV1ServiceReference.ts index 1f92efb04a..8d1af52d3b 100644 --- a/src/gen/models/ApiextensionsV1ServiceReference.ts +++ b/src/gen/models/ApiextensionsV1ServiceReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ApiextensionsV1WebhookClientConfig.ts b/src/gen/models/ApiextensionsV1WebhookClientConfig.ts index 18debc2bcf..99bbe8577c 100644 --- a/src/gen/models/ApiextensionsV1WebhookClientConfig.ts +++ b/src/gen/models/ApiextensionsV1WebhookClientConfig.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ApiregistrationV1ServiceReference.ts b/src/gen/models/ApiregistrationV1ServiceReference.ts index e75dd2fe1e..fa120e8637 100644 --- a/src/gen/models/ApiregistrationV1ServiceReference.ts +++ b/src/gen/models/ApiregistrationV1ServiceReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/AuthenticationV1TokenRequest.ts b/src/gen/models/AuthenticationV1TokenRequest.ts index 9f9b5945f1..7228292598 100644 --- a/src/gen/models/AuthenticationV1TokenRequest.ts +++ b/src/gen/models/AuthenticationV1TokenRequest.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/CoreV1EndpointPort.ts b/src/gen/models/CoreV1EndpointPort.ts index 232e532d53..9725a3c9f9 100644 --- a/src/gen/models/CoreV1EndpointPort.ts +++ b/src/gen/models/CoreV1EndpointPort.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/CoreV1Event.ts b/src/gen/models/CoreV1Event.ts index 880c2030ff..3aa6301d02 100644 --- a/src/gen/models/CoreV1Event.ts +++ b/src/gen/models/CoreV1Event.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/CoreV1EventList.ts b/src/gen/models/CoreV1EventList.ts index f759461d95..e259c06d95 100644 --- a/src/gen/models/CoreV1EventList.ts +++ b/src/gen/models/CoreV1EventList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/CoreV1EventSeries.ts b/src/gen/models/CoreV1EventSeries.ts index 22ef163cb8..08cd7e423b 100644 --- a/src/gen/models/CoreV1EventSeries.ts +++ b/src/gen/models/CoreV1EventSeries.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/CoreV1ResourceClaim.ts b/src/gen/models/CoreV1ResourceClaim.ts new file mode 100644 index 0000000000..2efafb722e --- /dev/null +++ b/src/gen/models/CoreV1ResourceClaim.ts @@ -0,0 +1,52 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* ResourceClaim references one entry in PodSpec.ResourceClaims. +*/ +export class CoreV1ResourceClaim { + /** + * Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. + */ + 'name': string; + /** + * Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. + */ + 'request'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + }, + { + "name": "request", + "baseName": "request", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return CoreV1ResourceClaim.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/DiscoveryV1EndpointPort.ts b/src/gen/models/DiscoveryV1EndpointPort.ts index 2f3e79a4c5..95a1ad3f4a 100644 --- a/src/gen/models/DiscoveryV1EndpointPort.ts +++ b/src/gen/models/DiscoveryV1EndpointPort.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/EventsV1Event.ts b/src/gen/models/EventsV1Event.ts index 30be70d395..1d970555bf 100644 --- a/src/gen/models/EventsV1Event.ts +++ b/src/gen/models/EventsV1Event.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/EventsV1EventList.ts b/src/gen/models/EventsV1EventList.ts index 9b3623ffbe..4ac25ac88b 100644 --- a/src/gen/models/EventsV1EventList.ts +++ b/src/gen/models/EventsV1EventList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/EventsV1EventSeries.ts b/src/gen/models/EventsV1EventSeries.ts index c6dfbe2256..f9f96f70ff 100644 --- a/src/gen/models/EventsV1EventSeries.ts +++ b/src/gen/models/EventsV1EventSeries.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/FlowcontrolV1Subject.ts b/src/gen/models/FlowcontrolV1Subject.ts index 9e1ae01d91..fe16012bd3 100644 --- a/src/gen/models/FlowcontrolV1Subject.ts +++ b/src/gen/models/FlowcontrolV1Subject.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ObjectSerializer.ts b/src/gen/models/ObjectSerializer.ts index c0c8bc6fb4..4ce43caedd 100644 --- a/src/gen/models/ObjectSerializer.ts +++ b/src/gen/models/ObjectSerializer.ts @@ -8,12 +8,14 @@ export * from '../models/CoreV1EndpointPort.js'; export * from '../models/CoreV1Event.js'; export * from '../models/CoreV1EventList.js'; export * from '../models/CoreV1EventSeries.js'; +export * from '../models/CoreV1ResourceClaim.js'; export * from '../models/DiscoveryV1EndpointPort.js'; export * from '../models/EventsV1Event.js'; export * from '../models/EventsV1EventList.js'; export * from '../models/EventsV1EventSeries.js'; export * from '../models/FlowcontrolV1Subject.js'; export * from '../models/RbacV1Subject.js'; +export * from '../models/ResourceV1ResourceClaim.js'; export * from '../models/StorageV1TokenRequest.js'; export * from '../models/V1APIGroup.js'; export * from '../models/V1APIGroupList.js'; @@ -28,6 +30,8 @@ export * from '../models/V1APIVersions.js'; export * from '../models/V1AWSElasticBlockStoreVolumeSource.js'; export * from '../models/V1Affinity.js'; export * from '../models/V1AggregationRule.js'; +export * from '../models/V1AllocatedDeviceStatus.js'; +export * from '../models/V1AllocationResult.js'; export * from '../models/V1AppArmorProfile.js'; export * from '../models/V1AttachedVolume.js'; export * from '../models/V1AuditAnnotation.js'; @@ -36,6 +40,7 @@ export * from '../models/V1AzureFilePersistentVolumeSource.js'; export * from '../models/V1AzureFileVolumeSource.js'; export * from '../models/V1Binding.js'; export * from '../models/V1BoundObjectReference.js'; +export * from '../models/V1CELDeviceSelector.js'; export * from '../models/V1CSIDriver.js'; export * from '../models/V1CSIDriverList.js'; export * from '../models/V1CSIDriverSpec.js'; @@ -48,6 +53,9 @@ export * from '../models/V1CSIStorageCapacity.js'; export * from '../models/V1CSIStorageCapacityList.js'; export * from '../models/V1CSIVolumeSource.js'; export * from '../models/V1Capabilities.js'; +export * from '../models/V1CapacityRequestPolicy.js'; +export * from '../models/V1CapacityRequestPolicyRange.js'; +export * from '../models/V1CapacityRequirements.js'; export * from '../models/V1CephFSPersistentVolumeSource.js'; export * from '../models/V1CephFSVolumeSource.js'; export * from '../models/V1CertificateSigningRequest.js'; @@ -75,9 +83,12 @@ export * from '../models/V1ConfigMapNodeConfigSource.js'; export * from '../models/V1ConfigMapProjection.js'; export * from '../models/V1ConfigMapVolumeSource.js'; export * from '../models/V1Container.js'; +export * from '../models/V1ContainerExtendedResourceRequest.js'; export * from '../models/V1ContainerImage.js'; export * from '../models/V1ContainerPort.js'; export * from '../models/V1ContainerResizePolicy.js'; +export * from '../models/V1ContainerRestartRule.js'; +export * from '../models/V1ContainerRestartRuleOnExitCodes.js'; export * from '../models/V1ContainerState.js'; export * from '../models/V1ContainerStateRunning.js'; export * from '../models/V1ContainerStateTerminated.js'; @@ -86,6 +97,8 @@ export * from '../models/V1ContainerStatus.js'; export * from '../models/V1ContainerUser.js'; export * from '../models/V1ControllerRevision.js'; export * from '../models/V1ControllerRevisionList.js'; +export * from '../models/V1Counter.js'; +export * from '../models/V1CounterSet.js'; export * from '../models/V1CronJob.js'; export * from '../models/V1CronJobList.js'; export * from '../models/V1CronJobSpec.js'; @@ -117,6 +130,25 @@ export * from '../models/V1DeploymentList.js'; export * from '../models/V1DeploymentSpec.js'; export * from '../models/V1DeploymentStatus.js'; export * from '../models/V1DeploymentStrategy.js'; +export * from '../models/V1Device.js'; +export * from '../models/V1DeviceAllocationConfiguration.js'; +export * from '../models/V1DeviceAllocationResult.js'; +export * from '../models/V1DeviceAttribute.js'; +export * from '../models/V1DeviceCapacity.js'; +export * from '../models/V1DeviceClaim.js'; +export * from '../models/V1DeviceClaimConfiguration.js'; +export * from '../models/V1DeviceClass.js'; +export * from '../models/V1DeviceClassConfiguration.js'; +export * from '../models/V1DeviceClassList.js'; +export * from '../models/V1DeviceClassSpec.js'; +export * from '../models/V1DeviceConstraint.js'; +export * from '../models/V1DeviceCounterConsumption.js'; +export * from '../models/V1DeviceRequest.js'; +export * from '../models/V1DeviceRequestAllocationResult.js'; +export * from '../models/V1DeviceSelector.js'; +export * from '../models/V1DeviceSubRequest.js'; +export * from '../models/V1DeviceTaint.js'; +export * from '../models/V1DeviceToleration.js'; export * from '../models/V1DownwardAPIProjection.js'; export * from '../models/V1DownwardAPIVolumeFile.js'; export * from '../models/V1DownwardAPIVolumeSource.js'; @@ -137,6 +169,7 @@ export * from '../models/V1EphemeralContainer.js'; export * from '../models/V1EphemeralVolumeSource.js'; export * from '../models/V1EventSource.js'; export * from '../models/V1Eviction.js'; +export * from '../models/V1ExactDeviceRequest.js'; export * from '../models/V1ExecAction.js'; export * from '../models/V1ExemptPriorityLevelConfiguration.js'; export * from '../models/V1ExpressionWarning.js'; @@ -144,6 +177,7 @@ export * from '../models/V1ExternalDocumentation.js'; export * from '../models/V1FCVolumeSource.js'; export * from '../models/V1FieldSelectorAttributes.js'; export * from '../models/V1FieldSelectorRequirement.js'; +export * from '../models/V1FileKeySelector.js'; export * from '../models/V1FlexPersistentVolumeSource.js'; export * from '../models/V1FlexVolumeSource.js'; export * from '../models/V1FlockerVolumeSource.js'; @@ -238,6 +272,7 @@ export * from '../models/V1NamespaceCondition.js'; export * from '../models/V1NamespaceList.js'; export * from '../models/V1NamespaceSpec.js'; export * from '../models/V1NamespaceStatus.js'; +export * from '../models/V1NetworkDeviceData.js'; export * from '../models/V1NetworkPolicy.js'; export * from '../models/V1NetworkPolicyEgressRule.js'; export * from '../models/V1NetworkPolicyIngressRule.js'; @@ -269,6 +304,7 @@ export * from '../models/V1NonResourceRule.js'; export * from '../models/V1ObjectFieldSelector.js'; export * from '../models/V1ObjectMeta.js'; export * from '../models/V1ObjectReference.js'; +export * from '../models/V1OpaqueDeviceConfiguration.js'; export * from '../models/V1Overhead.js'; export * from '../models/V1OwnerReference.js'; export * from '../models/V1ParamKind.js'; @@ -290,6 +326,7 @@ export * from '../models/V1Pod.js'; export * from '../models/V1PodAffinity.js'; export * from '../models/V1PodAffinityTerm.js'; export * from '../models/V1PodAntiAffinity.js'; +export * from '../models/V1PodCertificateProjection.js'; export * from '../models/V1PodCondition.js'; export * from '../models/V1PodDNSConfig.js'; export * from '../models/V1PodDNSConfigOption.js'; @@ -297,6 +334,7 @@ export * from '../models/V1PodDisruptionBudget.js'; export * from '../models/V1PodDisruptionBudgetList.js'; export * from '../models/V1PodDisruptionBudgetSpec.js'; export * from '../models/V1PodDisruptionBudgetStatus.js'; +export * from '../models/V1PodExtendedResourceClaimStatus.js'; export * from '../models/V1PodFailurePolicy.js'; export * from '../models/V1PodFailurePolicyOnExitCodesRequirement.js'; export * from '../models/V1PodFailurePolicyOnPodConditionsPattern.js'; @@ -345,16 +383,26 @@ export * from '../models/V1ReplicationControllerList.js'; export * from '../models/V1ReplicationControllerSpec.js'; export * from '../models/V1ReplicationControllerStatus.js'; export * from '../models/V1ResourceAttributes.js'; -export * from '../models/V1ResourceClaim.js'; +export * from '../models/V1ResourceClaimConsumerReference.js'; +export * from '../models/V1ResourceClaimList.js'; +export * from '../models/V1ResourceClaimSpec.js'; +export * from '../models/V1ResourceClaimStatus.js'; +export * from '../models/V1ResourceClaimTemplate.js'; +export * from '../models/V1ResourceClaimTemplateList.js'; +export * from '../models/V1ResourceClaimTemplateSpec.js'; export * from '../models/V1ResourceFieldSelector.js'; export * from '../models/V1ResourceHealth.js'; export * from '../models/V1ResourcePolicyRule.js'; +export * from '../models/V1ResourcePool.js'; export * from '../models/V1ResourceQuota.js'; export * from '../models/V1ResourceQuotaList.js'; export * from '../models/V1ResourceQuotaSpec.js'; export * from '../models/V1ResourceQuotaStatus.js'; export * from '../models/V1ResourceRequirements.js'; export * from '../models/V1ResourceRule.js'; +export * from '../models/V1ResourceSlice.js'; +export * from '../models/V1ResourceSliceList.js'; +export * from '../models/V1ResourceSliceSpec.js'; export * from '../models/V1ResourceStatus.js'; export * from '../models/V1Role.js'; export * from '../models/V1RoleBinding.js'; @@ -467,6 +515,8 @@ export * from '../models/V1VolumeAttachmentList.js'; export * from '../models/V1VolumeAttachmentSource.js'; export * from '../models/V1VolumeAttachmentSpec.js'; export * from '../models/V1VolumeAttachmentStatus.js'; +export * from '../models/V1VolumeAttributesClass.js'; +export * from '../models/V1VolumeAttributesClassList.js'; export * from '../models/V1VolumeDevice.js'; export * from '../models/V1VolumeError.js'; export * from '../models/V1VolumeMount.js'; @@ -499,6 +549,10 @@ export * from '../models/V1alpha1Mutation.js'; export * from '../models/V1alpha1NamedRuleWithOperations.js'; export * from '../models/V1alpha1ParamKind.js'; export * from '../models/V1alpha1ParamRef.js'; +export * from '../models/V1alpha1PodCertificateRequest.js'; +export * from '../models/V1alpha1PodCertificateRequestList.js'; +export * from '../models/V1alpha1PodCertificateRequestSpec.js'; +export * from '../models/V1alpha1PodCertificateRequestStatus.js'; export * from '../models/V1alpha1ServerStorageVersion.js'; export * from '../models/V1alpha1StorageVersion.js'; export * from '../models/V1alpha1StorageVersionCondition.js'; @@ -514,53 +568,21 @@ export * from '../models/V1alpha1VolumeAttributesClassList.js'; export * from '../models/V1alpha2LeaseCandidate.js'; export * from '../models/V1alpha2LeaseCandidateList.js'; export * from '../models/V1alpha2LeaseCandidateSpec.js'; -export * from '../models/V1alpha3AllocatedDeviceStatus.js'; -export * from '../models/V1alpha3AllocationResult.js'; -export * from '../models/V1alpha3BasicDevice.js'; export * from '../models/V1alpha3CELDeviceSelector.js'; -export * from '../models/V1alpha3Counter.js'; -export * from '../models/V1alpha3CounterSet.js'; -export * from '../models/V1alpha3Device.js'; -export * from '../models/V1alpha3DeviceAllocationConfiguration.js'; -export * from '../models/V1alpha3DeviceAllocationResult.js'; -export * from '../models/V1alpha3DeviceAttribute.js'; -export * from '../models/V1alpha3DeviceClaim.js'; -export * from '../models/V1alpha3DeviceClaimConfiguration.js'; -export * from '../models/V1alpha3DeviceClass.js'; -export * from '../models/V1alpha3DeviceClassConfiguration.js'; -export * from '../models/V1alpha3DeviceClassList.js'; -export * from '../models/V1alpha3DeviceClassSpec.js'; -export * from '../models/V1alpha3DeviceConstraint.js'; -export * from '../models/V1alpha3DeviceCounterConsumption.js'; -export * from '../models/V1alpha3DeviceRequest.js'; -export * from '../models/V1alpha3DeviceRequestAllocationResult.js'; export * from '../models/V1alpha3DeviceSelector.js'; -export * from '../models/V1alpha3DeviceSubRequest.js'; export * from '../models/V1alpha3DeviceTaint.js'; export * from '../models/V1alpha3DeviceTaintRule.js'; export * from '../models/V1alpha3DeviceTaintRuleList.js'; export * from '../models/V1alpha3DeviceTaintRuleSpec.js'; export * from '../models/V1alpha3DeviceTaintSelector.js'; -export * from '../models/V1alpha3DeviceToleration.js'; -export * from '../models/V1alpha3NetworkDeviceData.js'; -export * from '../models/V1alpha3OpaqueDeviceConfiguration.js'; -export * from '../models/V1alpha3ResourceClaim.js'; -export * from '../models/V1alpha3ResourceClaimConsumerReference.js'; -export * from '../models/V1alpha3ResourceClaimList.js'; -export * from '../models/V1alpha3ResourceClaimSpec.js'; -export * from '../models/V1alpha3ResourceClaimStatus.js'; -export * from '../models/V1alpha3ResourceClaimTemplate.js'; -export * from '../models/V1alpha3ResourceClaimTemplateList.js'; -export * from '../models/V1alpha3ResourceClaimTemplateSpec.js'; -export * from '../models/V1alpha3ResourcePool.js'; -export * from '../models/V1alpha3ResourceSlice.js'; -export * from '../models/V1alpha3ResourceSliceList.js'; -export * from '../models/V1alpha3ResourceSliceSpec.js'; export * from '../models/V1beta1AllocatedDeviceStatus.js'; export * from '../models/V1beta1AllocationResult.js'; -export * from '../models/V1beta1AuditAnnotation.js'; +export * from '../models/V1beta1ApplyConfiguration.js'; export * from '../models/V1beta1BasicDevice.js'; export * from '../models/V1beta1CELDeviceSelector.js'; +export * from '../models/V1beta1CapacityRequestPolicy.js'; +export * from '../models/V1beta1CapacityRequestPolicyRange.js'; +export * from '../models/V1beta1CapacityRequirements.js'; export * from '../models/V1beta1ClusterTrustBundle.js'; export * from '../models/V1beta1ClusterTrustBundleList.js'; export * from '../models/V1beta1ClusterTrustBundleSpec.js'; @@ -585,15 +607,22 @@ export * from '../models/V1beta1DeviceSelector.js'; export * from '../models/V1beta1DeviceSubRequest.js'; export * from '../models/V1beta1DeviceTaint.js'; export * from '../models/V1beta1DeviceToleration.js'; -export * from '../models/V1beta1ExpressionWarning.js'; export * from '../models/V1beta1IPAddress.js'; export * from '../models/V1beta1IPAddressList.js'; export * from '../models/V1beta1IPAddressSpec.js'; +export * from '../models/V1beta1JSONPatch.js'; export * from '../models/V1beta1LeaseCandidate.js'; export * from '../models/V1beta1LeaseCandidateList.js'; export * from '../models/V1beta1LeaseCandidateSpec.js'; export * from '../models/V1beta1MatchCondition.js'; export * from '../models/V1beta1MatchResources.js'; +export * from '../models/V1beta1MutatingAdmissionPolicy.js'; +export * from '../models/V1beta1MutatingAdmissionPolicyBinding.js'; +export * from '../models/V1beta1MutatingAdmissionPolicyBindingList.js'; +export * from '../models/V1beta1MutatingAdmissionPolicyBindingSpec.js'; +export * from '../models/V1beta1MutatingAdmissionPolicyList.js'; +export * from '../models/V1beta1MutatingAdmissionPolicySpec.js'; +export * from '../models/V1beta1Mutation.js'; export * from '../models/V1beta1NamedRuleWithOperations.js'; export * from '../models/V1beta1NetworkDeviceData.js'; export * from '../models/V1beta1OpaqueDeviceConfiguration.js'; @@ -616,21 +645,15 @@ export * from '../models/V1beta1ServiceCIDR.js'; export * from '../models/V1beta1ServiceCIDRList.js'; export * from '../models/V1beta1ServiceCIDRSpec.js'; export * from '../models/V1beta1ServiceCIDRStatus.js'; -export * from '../models/V1beta1TypeChecking.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicy.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyBinding.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyBindingList.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyBindingSpec.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyList.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicySpec.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyStatus.js'; -export * from '../models/V1beta1Validation.js'; export * from '../models/V1beta1Variable.js'; export * from '../models/V1beta1VolumeAttributesClass.js'; export * from '../models/V1beta1VolumeAttributesClassList.js'; export * from '../models/V1beta2AllocatedDeviceStatus.js'; export * from '../models/V1beta2AllocationResult.js'; export * from '../models/V1beta2CELDeviceSelector.js'; +export * from '../models/V1beta2CapacityRequestPolicy.js'; +export * from '../models/V1beta2CapacityRequestPolicyRange.js'; +export * from '../models/V1beta2CapacityRequirements.js'; export * from '../models/V1beta2Counter.js'; export * from '../models/V1beta2CounterSet.js'; export * from '../models/V1beta2Device.js'; @@ -703,12 +726,14 @@ import { CoreV1EndpointPort } from '../models/CoreV1EndpointPort.js'; import { CoreV1Event } from '../models/CoreV1Event.js'; import { CoreV1EventList } from '../models/CoreV1EventList.js'; import { CoreV1EventSeries } from '../models/CoreV1EventSeries.js'; +import { CoreV1ResourceClaim } from '../models/CoreV1ResourceClaim.js'; import { DiscoveryV1EndpointPort } from '../models/DiscoveryV1EndpointPort.js'; import { EventsV1Event } from '../models/EventsV1Event.js'; import { EventsV1EventList } from '../models/EventsV1EventList.js'; import { EventsV1EventSeries } from '../models/EventsV1EventSeries.js'; import { FlowcontrolV1Subject } from '../models/FlowcontrolV1Subject.js'; import { RbacV1Subject } from '../models/RbacV1Subject.js'; +import { ResourceV1ResourceClaim } from '../models/ResourceV1ResourceClaim.js'; import { StorageV1TokenRequest } from '../models/StorageV1TokenRequest.js'; import { V1APIGroup } from '../models/V1APIGroup.js'; import { V1APIGroupList } from '../models/V1APIGroupList.js'; @@ -723,6 +748,8 @@ import { V1APIVersions } from '../models/V1APIVersions.js'; import { V1AWSElasticBlockStoreVolumeSource } from '../models/V1AWSElasticBlockStoreVolumeSource.js'; import { V1Affinity } from '../models/V1Affinity.js'; import { V1AggregationRule } from '../models/V1AggregationRule.js'; +import { V1AllocatedDeviceStatus } from '../models/V1AllocatedDeviceStatus.js'; +import { V1AllocationResult } from '../models/V1AllocationResult.js'; import { V1AppArmorProfile } from '../models/V1AppArmorProfile.js'; import { V1AttachedVolume } from '../models/V1AttachedVolume.js'; import { V1AuditAnnotation } from '../models/V1AuditAnnotation.js'; @@ -731,6 +758,7 @@ import { V1AzureFilePersistentVolumeSource } from '../models/V1AzureFilePersiste import { V1AzureFileVolumeSource } from '../models/V1AzureFileVolumeSource.js'; import { V1Binding } from '../models/V1Binding.js'; import { V1BoundObjectReference } from '../models/V1BoundObjectReference.js'; +import { V1CELDeviceSelector } from '../models/V1CELDeviceSelector.js'; import { V1CSIDriver } from '../models/V1CSIDriver.js'; import { V1CSIDriverList } from '../models/V1CSIDriverList.js'; import { V1CSIDriverSpec } from '../models/V1CSIDriverSpec.js'; @@ -743,6 +771,9 @@ import { V1CSIStorageCapacity } from '../models/V1CSIStorageCapacity.js'; import { V1CSIStorageCapacityList } from '../models/V1CSIStorageCapacityList.js'; import { V1CSIVolumeSource } from '../models/V1CSIVolumeSource.js'; import { V1Capabilities } from '../models/V1Capabilities.js'; +import { V1CapacityRequestPolicy } from '../models/V1CapacityRequestPolicy.js'; +import { V1CapacityRequestPolicyRange } from '../models/V1CapacityRequestPolicyRange.js'; +import { V1CapacityRequirements } from '../models/V1CapacityRequirements.js'; import { V1CephFSPersistentVolumeSource } from '../models/V1CephFSPersistentVolumeSource.js'; import { V1CephFSVolumeSource } from '../models/V1CephFSVolumeSource.js'; import { V1CertificateSigningRequest } from '../models/V1CertificateSigningRequest.js'; @@ -770,9 +801,12 @@ import { V1ConfigMapNodeConfigSource } from '../models/V1ConfigMapNodeConfigSour import { V1ConfigMapProjection } from '../models/V1ConfigMapProjection.js'; import { V1ConfigMapVolumeSource } from '../models/V1ConfigMapVolumeSource.js'; import { V1Container } from '../models/V1Container.js'; +import { V1ContainerExtendedResourceRequest } from '../models/V1ContainerExtendedResourceRequest.js'; import { V1ContainerImage } from '../models/V1ContainerImage.js'; import { V1ContainerPort } from '../models/V1ContainerPort.js'; import { V1ContainerResizePolicy } from '../models/V1ContainerResizePolicy.js'; +import { V1ContainerRestartRule } from '../models/V1ContainerRestartRule.js'; +import { V1ContainerRestartRuleOnExitCodes } from '../models/V1ContainerRestartRuleOnExitCodes.js'; import { V1ContainerState } from '../models/V1ContainerState.js'; import { V1ContainerStateRunning } from '../models/V1ContainerStateRunning.js'; import { V1ContainerStateTerminated } from '../models/V1ContainerStateTerminated.js'; @@ -781,6 +815,8 @@ import { V1ContainerStatus } from '../models/V1ContainerStatus.js'; import { V1ContainerUser } from '../models/V1ContainerUser.js'; import { V1ControllerRevision } from '../models/V1ControllerRevision.js'; import { V1ControllerRevisionList } from '../models/V1ControllerRevisionList.js'; +import { V1Counter } from '../models/V1Counter.js'; +import { V1CounterSet } from '../models/V1CounterSet.js'; import { V1CronJob } from '../models/V1CronJob.js'; import { V1CronJobList } from '../models/V1CronJobList.js'; import { V1CronJobSpec } from '../models/V1CronJobSpec.js'; @@ -812,6 +848,25 @@ import { V1DeploymentList } from '../models/V1DeploymentList.js'; import { V1DeploymentSpec } from '../models/V1DeploymentSpec.js'; import { V1DeploymentStatus } from '../models/V1DeploymentStatus.js'; import { V1DeploymentStrategy } from '../models/V1DeploymentStrategy.js'; +import { V1Device } from '../models/V1Device.js'; +import { V1DeviceAllocationConfiguration } from '../models/V1DeviceAllocationConfiguration.js'; +import { V1DeviceAllocationResult } from '../models/V1DeviceAllocationResult.js'; +import { V1DeviceAttribute } from '../models/V1DeviceAttribute.js'; +import { V1DeviceCapacity } from '../models/V1DeviceCapacity.js'; +import { V1DeviceClaim } from '../models/V1DeviceClaim.js'; +import { V1DeviceClaimConfiguration } from '../models/V1DeviceClaimConfiguration.js'; +import { V1DeviceClass } from '../models/V1DeviceClass.js'; +import { V1DeviceClassConfiguration } from '../models/V1DeviceClassConfiguration.js'; +import { V1DeviceClassList } from '../models/V1DeviceClassList.js'; +import { V1DeviceClassSpec } from '../models/V1DeviceClassSpec.js'; +import { V1DeviceConstraint } from '../models/V1DeviceConstraint.js'; +import { V1DeviceCounterConsumption } from '../models/V1DeviceCounterConsumption.js'; +import { V1DeviceRequest } from '../models/V1DeviceRequest.js'; +import { V1DeviceRequestAllocationResult } from '../models/V1DeviceRequestAllocationResult.js'; +import { V1DeviceSelector } from '../models/V1DeviceSelector.js'; +import { V1DeviceSubRequest } from '../models/V1DeviceSubRequest.js'; +import { V1DeviceTaint } from '../models/V1DeviceTaint.js'; +import { V1DeviceToleration } from '../models/V1DeviceToleration.js'; import { V1DownwardAPIProjection } from '../models/V1DownwardAPIProjection.js'; import { V1DownwardAPIVolumeFile } from '../models/V1DownwardAPIVolumeFile.js'; import { V1DownwardAPIVolumeSource } from '../models/V1DownwardAPIVolumeSource.js'; @@ -832,6 +887,7 @@ import { V1EphemeralContainer } from '../models/V1EphemeralContainer.js'; import { V1EphemeralVolumeSource } from '../models/V1EphemeralVolumeSource.js'; import { V1EventSource } from '../models/V1EventSource.js'; import { V1Eviction } from '../models/V1Eviction.js'; +import { V1ExactDeviceRequest } from '../models/V1ExactDeviceRequest.js'; import { V1ExecAction } from '../models/V1ExecAction.js'; import { V1ExemptPriorityLevelConfiguration } from '../models/V1ExemptPriorityLevelConfiguration.js'; import { V1ExpressionWarning } from '../models/V1ExpressionWarning.js'; @@ -839,6 +895,7 @@ import { V1ExternalDocumentation } from '../models/V1ExternalDocumentation.js'; import { V1FCVolumeSource } from '../models/V1FCVolumeSource.js'; import { V1FieldSelectorAttributes } from '../models/V1FieldSelectorAttributes.js'; import { V1FieldSelectorRequirement } from '../models/V1FieldSelectorRequirement.js'; +import { V1FileKeySelector } from '../models/V1FileKeySelector.js'; import { V1FlexPersistentVolumeSource } from '../models/V1FlexPersistentVolumeSource.js'; import { V1FlexVolumeSource } from '../models/V1FlexVolumeSource.js'; import { V1FlockerVolumeSource } from '../models/V1FlockerVolumeSource.js'; @@ -933,6 +990,7 @@ import { V1NamespaceCondition } from '../models/V1NamespaceCondition.js'; import { V1NamespaceList } from '../models/V1NamespaceList.js'; import { V1NamespaceSpec } from '../models/V1NamespaceSpec.js'; import { V1NamespaceStatus } from '../models/V1NamespaceStatus.js'; +import { V1NetworkDeviceData } from '../models/V1NetworkDeviceData.js'; import { V1NetworkPolicy } from '../models/V1NetworkPolicy.js'; import { V1NetworkPolicyEgressRule } from '../models/V1NetworkPolicyEgressRule.js'; import { V1NetworkPolicyIngressRule } from '../models/V1NetworkPolicyIngressRule.js'; @@ -964,6 +1022,7 @@ import { V1NonResourceRule } from '../models/V1NonResourceRule.js'; import { V1ObjectFieldSelector } from '../models/V1ObjectFieldSelector.js'; import { V1ObjectMeta } from '../models/V1ObjectMeta.js'; import { V1ObjectReference } from '../models/V1ObjectReference.js'; +import { V1OpaqueDeviceConfiguration } from '../models/V1OpaqueDeviceConfiguration.js'; import { V1Overhead } from '../models/V1Overhead.js'; import { V1OwnerReference } from '../models/V1OwnerReference.js'; import { V1ParamKind } from '../models/V1ParamKind.js'; @@ -985,6 +1044,7 @@ import { V1Pod } from '../models/V1Pod.js'; import { V1PodAffinity } from '../models/V1PodAffinity.js'; import { V1PodAffinityTerm } from '../models/V1PodAffinityTerm.js'; import { V1PodAntiAffinity } from '../models/V1PodAntiAffinity.js'; +import { V1PodCertificateProjection } from '../models/V1PodCertificateProjection.js'; import { V1PodCondition } from '../models/V1PodCondition.js'; import { V1PodDNSConfig } from '../models/V1PodDNSConfig.js'; import { V1PodDNSConfigOption } from '../models/V1PodDNSConfigOption.js'; @@ -992,6 +1052,7 @@ import { V1PodDisruptionBudget } from '../models/V1PodDisruptionBudget.js'; import { V1PodDisruptionBudgetList } from '../models/V1PodDisruptionBudgetList.js'; import { V1PodDisruptionBudgetSpec } from '../models/V1PodDisruptionBudgetSpec.js'; import { V1PodDisruptionBudgetStatus } from '../models/V1PodDisruptionBudgetStatus.js'; +import { V1PodExtendedResourceClaimStatus } from '../models/V1PodExtendedResourceClaimStatus.js'; import { V1PodFailurePolicy } from '../models/V1PodFailurePolicy.js'; import { V1PodFailurePolicyOnExitCodesRequirement } from '../models/V1PodFailurePolicyOnExitCodesRequirement.js'; import { V1PodFailurePolicyOnPodConditionsPattern } from '../models/V1PodFailurePolicyOnPodConditionsPattern.js'; @@ -1040,16 +1101,26 @@ import { V1ReplicationControllerList } from '../models/V1ReplicationControllerLi import { V1ReplicationControllerSpec } from '../models/V1ReplicationControllerSpec.js'; import { V1ReplicationControllerStatus } from '../models/V1ReplicationControllerStatus.js'; import { V1ResourceAttributes } from '../models/V1ResourceAttributes.js'; -import { V1ResourceClaim } from '../models/V1ResourceClaim.js'; +import { V1ResourceClaimConsumerReference } from '../models/V1ResourceClaimConsumerReference.js'; +import { V1ResourceClaimList } from '../models/V1ResourceClaimList.js'; +import { V1ResourceClaimSpec } from '../models/V1ResourceClaimSpec.js'; +import { V1ResourceClaimStatus } from '../models/V1ResourceClaimStatus.js'; +import { V1ResourceClaimTemplate } from '../models/V1ResourceClaimTemplate.js'; +import { V1ResourceClaimTemplateList } from '../models/V1ResourceClaimTemplateList.js'; +import { V1ResourceClaimTemplateSpec } from '../models/V1ResourceClaimTemplateSpec.js'; import { V1ResourceFieldSelector } from '../models/V1ResourceFieldSelector.js'; import { V1ResourceHealth } from '../models/V1ResourceHealth.js'; import { V1ResourcePolicyRule } from '../models/V1ResourcePolicyRule.js'; +import { V1ResourcePool } from '../models/V1ResourcePool.js'; import { V1ResourceQuota } from '../models/V1ResourceQuota.js'; import { V1ResourceQuotaList } from '../models/V1ResourceQuotaList.js'; import { V1ResourceQuotaSpec } from '../models/V1ResourceQuotaSpec.js'; import { V1ResourceQuotaStatus } from '../models/V1ResourceQuotaStatus.js'; import { V1ResourceRequirements } from '../models/V1ResourceRequirements.js'; import { V1ResourceRule } from '../models/V1ResourceRule.js'; +import { V1ResourceSlice } from '../models/V1ResourceSlice.js'; +import { V1ResourceSliceList } from '../models/V1ResourceSliceList.js'; +import { V1ResourceSliceSpec } from '../models/V1ResourceSliceSpec.js'; import { V1ResourceStatus } from '../models/V1ResourceStatus.js'; import { V1Role } from '../models/V1Role.js'; import { V1RoleBinding } from '../models/V1RoleBinding.js'; @@ -1162,6 +1233,8 @@ import { V1VolumeAttachmentList } from '../models/V1VolumeAttachmentList.js'; import { V1VolumeAttachmentSource } from '../models/V1VolumeAttachmentSource.js'; import { V1VolumeAttachmentSpec } from '../models/V1VolumeAttachmentSpec.js'; import { V1VolumeAttachmentStatus } from '../models/V1VolumeAttachmentStatus.js'; +import { V1VolumeAttributesClass } from '../models/V1VolumeAttributesClass.js'; +import { V1VolumeAttributesClassList } from '../models/V1VolumeAttributesClassList.js'; import { V1VolumeDevice } from '../models/V1VolumeDevice.js'; import { V1VolumeError } from '../models/V1VolumeError.js'; import { V1VolumeMount } from '../models/V1VolumeMount.js'; @@ -1194,6 +1267,10 @@ import { V1alpha1Mutation } from '../models/V1alpha1Mutation.js'; import { V1alpha1NamedRuleWithOperations } from '../models/V1alpha1NamedRuleWithOperations.js'; import { V1alpha1ParamKind } from '../models/V1alpha1ParamKind.js'; import { V1alpha1ParamRef } from '../models/V1alpha1ParamRef.js'; +import { V1alpha1PodCertificateRequest } from '../models/V1alpha1PodCertificateRequest.js'; +import { V1alpha1PodCertificateRequestList } from '../models/V1alpha1PodCertificateRequestList.js'; +import { V1alpha1PodCertificateRequestSpec } from '../models/V1alpha1PodCertificateRequestSpec.js'; +import { V1alpha1PodCertificateRequestStatus } from '../models/V1alpha1PodCertificateRequestStatus.js'; import { V1alpha1ServerStorageVersion } from '../models/V1alpha1ServerStorageVersion.js'; import { V1alpha1StorageVersion } from '../models/V1alpha1StorageVersion.js'; import { V1alpha1StorageVersionCondition } from '../models/V1alpha1StorageVersionCondition.js'; @@ -1209,53 +1286,21 @@ import { V1alpha1VolumeAttributesClassList } from '../models/V1alpha1VolumeAttri import { V1alpha2LeaseCandidate } from '../models/V1alpha2LeaseCandidate.js'; import { V1alpha2LeaseCandidateList } from '../models/V1alpha2LeaseCandidateList.js'; import { V1alpha2LeaseCandidateSpec } from '../models/V1alpha2LeaseCandidateSpec.js'; -import { V1alpha3AllocatedDeviceStatus } from '../models/V1alpha3AllocatedDeviceStatus.js'; -import { V1alpha3AllocationResult } from '../models/V1alpha3AllocationResult.js'; -import { V1alpha3BasicDevice } from '../models/V1alpha3BasicDevice.js'; import { V1alpha3CELDeviceSelector } from '../models/V1alpha3CELDeviceSelector.js'; -import { V1alpha3Counter } from '../models/V1alpha3Counter.js'; -import { V1alpha3CounterSet } from '../models/V1alpha3CounterSet.js'; -import { V1alpha3Device } from '../models/V1alpha3Device.js'; -import { V1alpha3DeviceAllocationConfiguration } from '../models/V1alpha3DeviceAllocationConfiguration.js'; -import { V1alpha3DeviceAllocationResult } from '../models/V1alpha3DeviceAllocationResult.js'; -import { V1alpha3DeviceAttribute } from '../models/V1alpha3DeviceAttribute.js'; -import { V1alpha3DeviceClaim } from '../models/V1alpha3DeviceClaim.js'; -import { V1alpha3DeviceClaimConfiguration } from '../models/V1alpha3DeviceClaimConfiguration.js'; -import { V1alpha3DeviceClass } from '../models/V1alpha3DeviceClass.js'; -import { V1alpha3DeviceClassConfiguration } from '../models/V1alpha3DeviceClassConfiguration.js'; -import { V1alpha3DeviceClassList } from '../models/V1alpha3DeviceClassList.js'; -import { V1alpha3DeviceClassSpec } from '../models/V1alpha3DeviceClassSpec.js'; -import { V1alpha3DeviceConstraint } from '../models/V1alpha3DeviceConstraint.js'; -import { V1alpha3DeviceCounterConsumption } from '../models/V1alpha3DeviceCounterConsumption.js'; -import { V1alpha3DeviceRequest } from '../models/V1alpha3DeviceRequest.js'; -import { V1alpha3DeviceRequestAllocationResult } from '../models/V1alpha3DeviceRequestAllocationResult.js'; import { V1alpha3DeviceSelector } from '../models/V1alpha3DeviceSelector.js'; -import { V1alpha3DeviceSubRequest } from '../models/V1alpha3DeviceSubRequest.js'; import { V1alpha3DeviceTaint } from '../models/V1alpha3DeviceTaint.js'; import { V1alpha3DeviceTaintRule } from '../models/V1alpha3DeviceTaintRule.js'; import { V1alpha3DeviceTaintRuleList } from '../models/V1alpha3DeviceTaintRuleList.js'; import { V1alpha3DeviceTaintRuleSpec } from '../models/V1alpha3DeviceTaintRuleSpec.js'; import { V1alpha3DeviceTaintSelector } from '../models/V1alpha3DeviceTaintSelector.js'; -import { V1alpha3DeviceToleration } from '../models/V1alpha3DeviceToleration.js'; -import { V1alpha3NetworkDeviceData } from '../models/V1alpha3NetworkDeviceData.js'; -import { V1alpha3OpaqueDeviceConfiguration } from '../models/V1alpha3OpaqueDeviceConfiguration.js'; -import { V1alpha3ResourceClaim } from '../models/V1alpha3ResourceClaim.js'; -import { V1alpha3ResourceClaimConsumerReference } from '../models/V1alpha3ResourceClaimConsumerReference.js'; -import { V1alpha3ResourceClaimList } from '../models/V1alpha3ResourceClaimList.js'; -import { V1alpha3ResourceClaimSpec } from '../models/V1alpha3ResourceClaimSpec.js'; -import { V1alpha3ResourceClaimStatus } from '../models/V1alpha3ResourceClaimStatus.js'; -import { V1alpha3ResourceClaimTemplate } from '../models/V1alpha3ResourceClaimTemplate.js'; -import { V1alpha3ResourceClaimTemplateList } from '../models/V1alpha3ResourceClaimTemplateList.js'; -import { V1alpha3ResourceClaimTemplateSpec } from '../models/V1alpha3ResourceClaimTemplateSpec.js'; -import { V1alpha3ResourcePool } from '../models/V1alpha3ResourcePool.js'; -import { V1alpha3ResourceSlice } from '../models/V1alpha3ResourceSlice.js'; -import { V1alpha3ResourceSliceList } from '../models/V1alpha3ResourceSliceList.js'; -import { V1alpha3ResourceSliceSpec } from '../models/V1alpha3ResourceSliceSpec.js'; import { V1beta1AllocatedDeviceStatus } from '../models/V1beta1AllocatedDeviceStatus.js'; import { V1beta1AllocationResult } from '../models/V1beta1AllocationResult.js'; -import { V1beta1AuditAnnotation } from '../models/V1beta1AuditAnnotation.js'; +import { V1beta1ApplyConfiguration } from '../models/V1beta1ApplyConfiguration.js'; import { V1beta1BasicDevice } from '../models/V1beta1BasicDevice.js'; import { V1beta1CELDeviceSelector } from '../models/V1beta1CELDeviceSelector.js'; +import { V1beta1CapacityRequestPolicy } from '../models/V1beta1CapacityRequestPolicy.js'; +import { V1beta1CapacityRequestPolicyRange } from '../models/V1beta1CapacityRequestPolicyRange.js'; +import { V1beta1CapacityRequirements } from '../models/V1beta1CapacityRequirements.js'; import { V1beta1ClusterTrustBundle } from '../models/V1beta1ClusterTrustBundle.js'; import { V1beta1ClusterTrustBundleList } from '../models/V1beta1ClusterTrustBundleList.js'; import { V1beta1ClusterTrustBundleSpec } from '../models/V1beta1ClusterTrustBundleSpec.js'; @@ -1280,15 +1325,22 @@ import { V1beta1DeviceSelector } from '../models/V1beta1DeviceSelector.js'; import { V1beta1DeviceSubRequest } from '../models/V1beta1DeviceSubRequest.js'; import { V1beta1DeviceTaint } from '../models/V1beta1DeviceTaint.js'; import { V1beta1DeviceToleration } from '../models/V1beta1DeviceToleration.js'; -import { V1beta1ExpressionWarning } from '../models/V1beta1ExpressionWarning.js'; import { V1beta1IPAddress } from '../models/V1beta1IPAddress.js'; import { V1beta1IPAddressList } from '../models/V1beta1IPAddressList.js'; import { V1beta1IPAddressSpec } from '../models/V1beta1IPAddressSpec.js'; +import { V1beta1JSONPatch } from '../models/V1beta1JSONPatch.js'; import { V1beta1LeaseCandidate } from '../models/V1beta1LeaseCandidate.js'; import { V1beta1LeaseCandidateList } from '../models/V1beta1LeaseCandidateList.js'; import { V1beta1LeaseCandidateSpec } from '../models/V1beta1LeaseCandidateSpec.js'; import { V1beta1MatchCondition } from '../models/V1beta1MatchCondition.js'; import { V1beta1MatchResources } from '../models/V1beta1MatchResources.js'; +import { V1beta1MutatingAdmissionPolicy } from '../models/V1beta1MutatingAdmissionPolicy.js'; +import { V1beta1MutatingAdmissionPolicyBinding } from '../models/V1beta1MutatingAdmissionPolicyBinding.js'; +import { V1beta1MutatingAdmissionPolicyBindingList } from '../models/V1beta1MutatingAdmissionPolicyBindingList.js'; +import { V1beta1MutatingAdmissionPolicyBindingSpec } from '../models/V1beta1MutatingAdmissionPolicyBindingSpec.js'; +import { V1beta1MutatingAdmissionPolicyList } from '../models/V1beta1MutatingAdmissionPolicyList.js'; +import { V1beta1MutatingAdmissionPolicySpec } from '../models/V1beta1MutatingAdmissionPolicySpec.js'; +import { V1beta1Mutation } from '../models/V1beta1Mutation.js'; import { V1beta1NamedRuleWithOperations } from '../models/V1beta1NamedRuleWithOperations.js'; import { V1beta1NetworkDeviceData } from '../models/V1beta1NetworkDeviceData.js'; import { V1beta1OpaqueDeviceConfiguration } from '../models/V1beta1OpaqueDeviceConfiguration.js'; @@ -1311,21 +1363,15 @@ import { V1beta1ServiceCIDR } from '../models/V1beta1ServiceCIDR.js'; import { V1beta1ServiceCIDRList } from '../models/V1beta1ServiceCIDRList.js'; import { V1beta1ServiceCIDRSpec } from '../models/V1beta1ServiceCIDRSpec.js'; import { V1beta1ServiceCIDRStatus } from '../models/V1beta1ServiceCIDRStatus.js'; -import { V1beta1TypeChecking } from '../models/V1beta1TypeChecking.js'; -import { V1beta1ValidatingAdmissionPolicy } from '../models/V1beta1ValidatingAdmissionPolicy.js'; -import { V1beta1ValidatingAdmissionPolicyBinding } from '../models/V1beta1ValidatingAdmissionPolicyBinding.js'; -import { V1beta1ValidatingAdmissionPolicyBindingList } from '../models/V1beta1ValidatingAdmissionPolicyBindingList.js'; -import { V1beta1ValidatingAdmissionPolicyBindingSpec } from '../models/V1beta1ValidatingAdmissionPolicyBindingSpec.js'; -import { V1beta1ValidatingAdmissionPolicyList } from '../models/V1beta1ValidatingAdmissionPolicyList.js'; -import { V1beta1ValidatingAdmissionPolicySpec } from '../models/V1beta1ValidatingAdmissionPolicySpec.js'; -import { V1beta1ValidatingAdmissionPolicyStatus } from '../models/V1beta1ValidatingAdmissionPolicyStatus.js'; -import { V1beta1Validation } from '../models/V1beta1Validation.js'; import { V1beta1Variable } from '../models/V1beta1Variable.js'; import { V1beta1VolumeAttributesClass } from '../models/V1beta1VolumeAttributesClass.js'; import { V1beta1VolumeAttributesClassList } from '../models/V1beta1VolumeAttributesClassList.js'; import { V1beta2AllocatedDeviceStatus } from '../models/V1beta2AllocatedDeviceStatus.js'; import { V1beta2AllocationResult } from '../models/V1beta2AllocationResult.js'; import { V1beta2CELDeviceSelector } from '../models/V1beta2CELDeviceSelector.js'; +import { V1beta2CapacityRequestPolicy } from '../models/V1beta2CapacityRequestPolicy.js'; +import { V1beta2CapacityRequestPolicyRange } from '../models/V1beta2CapacityRequestPolicyRange.js'; +import { V1beta2CapacityRequirements } from '../models/V1beta2CapacityRequirements.js'; import { V1beta2Counter } from '../models/V1beta2Counter.js'; import { V1beta2CounterSet } from '../models/V1beta2CounterSet.js'; import { V1beta2Device } from '../models/V1beta2Device.js'; @@ -1414,12 +1460,14 @@ let typeMap: {[index: string]: any} = { "CoreV1Event": CoreV1Event, "CoreV1EventList": CoreV1EventList, "CoreV1EventSeries": CoreV1EventSeries, + "CoreV1ResourceClaim": CoreV1ResourceClaim, "DiscoveryV1EndpointPort": DiscoveryV1EndpointPort, "EventsV1Event": EventsV1Event, "EventsV1EventList": EventsV1EventList, "EventsV1EventSeries": EventsV1EventSeries, "FlowcontrolV1Subject": FlowcontrolV1Subject, "RbacV1Subject": RbacV1Subject, + "ResourceV1ResourceClaim": ResourceV1ResourceClaim, "StorageV1TokenRequest": StorageV1TokenRequest, "V1APIGroup": V1APIGroup, "V1APIGroupList": V1APIGroupList, @@ -1434,6 +1482,8 @@ let typeMap: {[index: string]: any} = { "V1AWSElasticBlockStoreVolumeSource": V1AWSElasticBlockStoreVolumeSource, "V1Affinity": V1Affinity, "V1AggregationRule": V1AggregationRule, + "V1AllocatedDeviceStatus": V1AllocatedDeviceStatus, + "V1AllocationResult": V1AllocationResult, "V1AppArmorProfile": V1AppArmorProfile, "V1AttachedVolume": V1AttachedVolume, "V1AuditAnnotation": V1AuditAnnotation, @@ -1442,6 +1492,7 @@ let typeMap: {[index: string]: any} = { "V1AzureFileVolumeSource": V1AzureFileVolumeSource, "V1Binding": V1Binding, "V1BoundObjectReference": V1BoundObjectReference, + "V1CELDeviceSelector": V1CELDeviceSelector, "V1CSIDriver": V1CSIDriver, "V1CSIDriverList": V1CSIDriverList, "V1CSIDriverSpec": V1CSIDriverSpec, @@ -1454,6 +1505,9 @@ let typeMap: {[index: string]: any} = { "V1CSIStorageCapacityList": V1CSIStorageCapacityList, "V1CSIVolumeSource": V1CSIVolumeSource, "V1Capabilities": V1Capabilities, + "V1CapacityRequestPolicy": V1CapacityRequestPolicy, + "V1CapacityRequestPolicyRange": V1CapacityRequestPolicyRange, + "V1CapacityRequirements": V1CapacityRequirements, "V1CephFSPersistentVolumeSource": V1CephFSPersistentVolumeSource, "V1CephFSVolumeSource": V1CephFSVolumeSource, "V1CertificateSigningRequest": V1CertificateSigningRequest, @@ -1481,9 +1535,12 @@ let typeMap: {[index: string]: any} = { "V1ConfigMapProjection": V1ConfigMapProjection, "V1ConfigMapVolumeSource": V1ConfigMapVolumeSource, "V1Container": V1Container, + "V1ContainerExtendedResourceRequest": V1ContainerExtendedResourceRequest, "V1ContainerImage": V1ContainerImage, "V1ContainerPort": V1ContainerPort, "V1ContainerResizePolicy": V1ContainerResizePolicy, + "V1ContainerRestartRule": V1ContainerRestartRule, + "V1ContainerRestartRuleOnExitCodes": V1ContainerRestartRuleOnExitCodes, "V1ContainerState": V1ContainerState, "V1ContainerStateRunning": V1ContainerStateRunning, "V1ContainerStateTerminated": V1ContainerStateTerminated, @@ -1492,6 +1549,8 @@ let typeMap: {[index: string]: any} = { "V1ContainerUser": V1ContainerUser, "V1ControllerRevision": V1ControllerRevision, "V1ControllerRevisionList": V1ControllerRevisionList, + "V1Counter": V1Counter, + "V1CounterSet": V1CounterSet, "V1CronJob": V1CronJob, "V1CronJobList": V1CronJobList, "V1CronJobSpec": V1CronJobSpec, @@ -1523,6 +1582,25 @@ let typeMap: {[index: string]: any} = { "V1DeploymentSpec": V1DeploymentSpec, "V1DeploymentStatus": V1DeploymentStatus, "V1DeploymentStrategy": V1DeploymentStrategy, + "V1Device": V1Device, + "V1DeviceAllocationConfiguration": V1DeviceAllocationConfiguration, + "V1DeviceAllocationResult": V1DeviceAllocationResult, + "V1DeviceAttribute": V1DeviceAttribute, + "V1DeviceCapacity": V1DeviceCapacity, + "V1DeviceClaim": V1DeviceClaim, + "V1DeviceClaimConfiguration": V1DeviceClaimConfiguration, + "V1DeviceClass": V1DeviceClass, + "V1DeviceClassConfiguration": V1DeviceClassConfiguration, + "V1DeviceClassList": V1DeviceClassList, + "V1DeviceClassSpec": V1DeviceClassSpec, + "V1DeviceConstraint": V1DeviceConstraint, + "V1DeviceCounterConsumption": V1DeviceCounterConsumption, + "V1DeviceRequest": V1DeviceRequest, + "V1DeviceRequestAllocationResult": V1DeviceRequestAllocationResult, + "V1DeviceSelector": V1DeviceSelector, + "V1DeviceSubRequest": V1DeviceSubRequest, + "V1DeviceTaint": V1DeviceTaint, + "V1DeviceToleration": V1DeviceToleration, "V1DownwardAPIProjection": V1DownwardAPIProjection, "V1DownwardAPIVolumeFile": V1DownwardAPIVolumeFile, "V1DownwardAPIVolumeSource": V1DownwardAPIVolumeSource, @@ -1543,6 +1621,7 @@ let typeMap: {[index: string]: any} = { "V1EphemeralVolumeSource": V1EphemeralVolumeSource, "V1EventSource": V1EventSource, "V1Eviction": V1Eviction, + "V1ExactDeviceRequest": V1ExactDeviceRequest, "V1ExecAction": V1ExecAction, "V1ExemptPriorityLevelConfiguration": V1ExemptPriorityLevelConfiguration, "V1ExpressionWarning": V1ExpressionWarning, @@ -1550,6 +1629,7 @@ let typeMap: {[index: string]: any} = { "V1FCVolumeSource": V1FCVolumeSource, "V1FieldSelectorAttributes": V1FieldSelectorAttributes, "V1FieldSelectorRequirement": V1FieldSelectorRequirement, + "V1FileKeySelector": V1FileKeySelector, "V1FlexPersistentVolumeSource": V1FlexPersistentVolumeSource, "V1FlexVolumeSource": V1FlexVolumeSource, "V1FlockerVolumeSource": V1FlockerVolumeSource, @@ -1644,6 +1724,7 @@ let typeMap: {[index: string]: any} = { "V1NamespaceList": V1NamespaceList, "V1NamespaceSpec": V1NamespaceSpec, "V1NamespaceStatus": V1NamespaceStatus, + "V1NetworkDeviceData": V1NetworkDeviceData, "V1NetworkPolicy": V1NetworkPolicy, "V1NetworkPolicyEgressRule": V1NetworkPolicyEgressRule, "V1NetworkPolicyIngressRule": V1NetworkPolicyIngressRule, @@ -1675,6 +1756,7 @@ let typeMap: {[index: string]: any} = { "V1ObjectFieldSelector": V1ObjectFieldSelector, "V1ObjectMeta": V1ObjectMeta, "V1ObjectReference": V1ObjectReference, + "V1OpaqueDeviceConfiguration": V1OpaqueDeviceConfiguration, "V1Overhead": V1Overhead, "V1OwnerReference": V1OwnerReference, "V1ParamKind": V1ParamKind, @@ -1696,6 +1778,7 @@ let typeMap: {[index: string]: any} = { "V1PodAffinity": V1PodAffinity, "V1PodAffinityTerm": V1PodAffinityTerm, "V1PodAntiAffinity": V1PodAntiAffinity, + "V1PodCertificateProjection": V1PodCertificateProjection, "V1PodCondition": V1PodCondition, "V1PodDNSConfig": V1PodDNSConfig, "V1PodDNSConfigOption": V1PodDNSConfigOption, @@ -1703,6 +1786,7 @@ let typeMap: {[index: string]: any} = { "V1PodDisruptionBudgetList": V1PodDisruptionBudgetList, "V1PodDisruptionBudgetSpec": V1PodDisruptionBudgetSpec, "V1PodDisruptionBudgetStatus": V1PodDisruptionBudgetStatus, + "V1PodExtendedResourceClaimStatus": V1PodExtendedResourceClaimStatus, "V1PodFailurePolicy": V1PodFailurePolicy, "V1PodFailurePolicyOnExitCodesRequirement": V1PodFailurePolicyOnExitCodesRequirement, "V1PodFailurePolicyOnPodConditionsPattern": V1PodFailurePolicyOnPodConditionsPattern, @@ -1751,16 +1835,26 @@ let typeMap: {[index: string]: any} = { "V1ReplicationControllerSpec": V1ReplicationControllerSpec, "V1ReplicationControllerStatus": V1ReplicationControllerStatus, "V1ResourceAttributes": V1ResourceAttributes, - "V1ResourceClaim": V1ResourceClaim, + "V1ResourceClaimConsumerReference": V1ResourceClaimConsumerReference, + "V1ResourceClaimList": V1ResourceClaimList, + "V1ResourceClaimSpec": V1ResourceClaimSpec, + "V1ResourceClaimStatus": V1ResourceClaimStatus, + "V1ResourceClaimTemplate": V1ResourceClaimTemplate, + "V1ResourceClaimTemplateList": V1ResourceClaimTemplateList, + "V1ResourceClaimTemplateSpec": V1ResourceClaimTemplateSpec, "V1ResourceFieldSelector": V1ResourceFieldSelector, "V1ResourceHealth": V1ResourceHealth, "V1ResourcePolicyRule": V1ResourcePolicyRule, + "V1ResourcePool": V1ResourcePool, "V1ResourceQuota": V1ResourceQuota, "V1ResourceQuotaList": V1ResourceQuotaList, "V1ResourceQuotaSpec": V1ResourceQuotaSpec, "V1ResourceQuotaStatus": V1ResourceQuotaStatus, "V1ResourceRequirements": V1ResourceRequirements, "V1ResourceRule": V1ResourceRule, + "V1ResourceSlice": V1ResourceSlice, + "V1ResourceSliceList": V1ResourceSliceList, + "V1ResourceSliceSpec": V1ResourceSliceSpec, "V1ResourceStatus": V1ResourceStatus, "V1Role": V1Role, "V1RoleBinding": V1RoleBinding, @@ -1873,6 +1967,8 @@ let typeMap: {[index: string]: any} = { "V1VolumeAttachmentSource": V1VolumeAttachmentSource, "V1VolumeAttachmentSpec": V1VolumeAttachmentSpec, "V1VolumeAttachmentStatus": V1VolumeAttachmentStatus, + "V1VolumeAttributesClass": V1VolumeAttributesClass, + "V1VolumeAttributesClassList": V1VolumeAttributesClassList, "V1VolumeDevice": V1VolumeDevice, "V1VolumeError": V1VolumeError, "V1VolumeMount": V1VolumeMount, @@ -1905,6 +2001,10 @@ let typeMap: {[index: string]: any} = { "V1alpha1NamedRuleWithOperations": V1alpha1NamedRuleWithOperations, "V1alpha1ParamKind": V1alpha1ParamKind, "V1alpha1ParamRef": V1alpha1ParamRef, + "V1alpha1PodCertificateRequest": V1alpha1PodCertificateRequest, + "V1alpha1PodCertificateRequestList": V1alpha1PodCertificateRequestList, + "V1alpha1PodCertificateRequestSpec": V1alpha1PodCertificateRequestSpec, + "V1alpha1PodCertificateRequestStatus": V1alpha1PodCertificateRequestStatus, "V1alpha1ServerStorageVersion": V1alpha1ServerStorageVersion, "V1alpha1StorageVersion": V1alpha1StorageVersion, "V1alpha1StorageVersionCondition": V1alpha1StorageVersionCondition, @@ -1920,53 +2020,21 @@ let typeMap: {[index: string]: any} = { "V1alpha2LeaseCandidate": V1alpha2LeaseCandidate, "V1alpha2LeaseCandidateList": V1alpha2LeaseCandidateList, "V1alpha2LeaseCandidateSpec": V1alpha2LeaseCandidateSpec, - "V1alpha3AllocatedDeviceStatus": V1alpha3AllocatedDeviceStatus, - "V1alpha3AllocationResult": V1alpha3AllocationResult, - "V1alpha3BasicDevice": V1alpha3BasicDevice, "V1alpha3CELDeviceSelector": V1alpha3CELDeviceSelector, - "V1alpha3Counter": V1alpha3Counter, - "V1alpha3CounterSet": V1alpha3CounterSet, - "V1alpha3Device": V1alpha3Device, - "V1alpha3DeviceAllocationConfiguration": V1alpha3DeviceAllocationConfiguration, - "V1alpha3DeviceAllocationResult": V1alpha3DeviceAllocationResult, - "V1alpha3DeviceAttribute": V1alpha3DeviceAttribute, - "V1alpha3DeviceClaim": V1alpha3DeviceClaim, - "V1alpha3DeviceClaimConfiguration": V1alpha3DeviceClaimConfiguration, - "V1alpha3DeviceClass": V1alpha3DeviceClass, - "V1alpha3DeviceClassConfiguration": V1alpha3DeviceClassConfiguration, - "V1alpha3DeviceClassList": V1alpha3DeviceClassList, - "V1alpha3DeviceClassSpec": V1alpha3DeviceClassSpec, - "V1alpha3DeviceConstraint": V1alpha3DeviceConstraint, - "V1alpha3DeviceCounterConsumption": V1alpha3DeviceCounterConsumption, - "V1alpha3DeviceRequest": V1alpha3DeviceRequest, - "V1alpha3DeviceRequestAllocationResult": V1alpha3DeviceRequestAllocationResult, "V1alpha3DeviceSelector": V1alpha3DeviceSelector, - "V1alpha3DeviceSubRequest": V1alpha3DeviceSubRequest, "V1alpha3DeviceTaint": V1alpha3DeviceTaint, "V1alpha3DeviceTaintRule": V1alpha3DeviceTaintRule, "V1alpha3DeviceTaintRuleList": V1alpha3DeviceTaintRuleList, "V1alpha3DeviceTaintRuleSpec": V1alpha3DeviceTaintRuleSpec, "V1alpha3DeviceTaintSelector": V1alpha3DeviceTaintSelector, - "V1alpha3DeviceToleration": V1alpha3DeviceToleration, - "V1alpha3NetworkDeviceData": V1alpha3NetworkDeviceData, - "V1alpha3OpaqueDeviceConfiguration": V1alpha3OpaqueDeviceConfiguration, - "V1alpha3ResourceClaim": V1alpha3ResourceClaim, - "V1alpha3ResourceClaimConsumerReference": V1alpha3ResourceClaimConsumerReference, - "V1alpha3ResourceClaimList": V1alpha3ResourceClaimList, - "V1alpha3ResourceClaimSpec": V1alpha3ResourceClaimSpec, - "V1alpha3ResourceClaimStatus": V1alpha3ResourceClaimStatus, - "V1alpha3ResourceClaimTemplate": V1alpha3ResourceClaimTemplate, - "V1alpha3ResourceClaimTemplateList": V1alpha3ResourceClaimTemplateList, - "V1alpha3ResourceClaimTemplateSpec": V1alpha3ResourceClaimTemplateSpec, - "V1alpha3ResourcePool": V1alpha3ResourcePool, - "V1alpha3ResourceSlice": V1alpha3ResourceSlice, - "V1alpha3ResourceSliceList": V1alpha3ResourceSliceList, - "V1alpha3ResourceSliceSpec": V1alpha3ResourceSliceSpec, "V1beta1AllocatedDeviceStatus": V1beta1AllocatedDeviceStatus, "V1beta1AllocationResult": V1beta1AllocationResult, - "V1beta1AuditAnnotation": V1beta1AuditAnnotation, + "V1beta1ApplyConfiguration": V1beta1ApplyConfiguration, "V1beta1BasicDevice": V1beta1BasicDevice, "V1beta1CELDeviceSelector": V1beta1CELDeviceSelector, + "V1beta1CapacityRequestPolicy": V1beta1CapacityRequestPolicy, + "V1beta1CapacityRequestPolicyRange": V1beta1CapacityRequestPolicyRange, + "V1beta1CapacityRequirements": V1beta1CapacityRequirements, "V1beta1ClusterTrustBundle": V1beta1ClusterTrustBundle, "V1beta1ClusterTrustBundleList": V1beta1ClusterTrustBundleList, "V1beta1ClusterTrustBundleSpec": V1beta1ClusterTrustBundleSpec, @@ -1991,15 +2059,22 @@ let typeMap: {[index: string]: any} = { "V1beta1DeviceSubRequest": V1beta1DeviceSubRequest, "V1beta1DeviceTaint": V1beta1DeviceTaint, "V1beta1DeviceToleration": V1beta1DeviceToleration, - "V1beta1ExpressionWarning": V1beta1ExpressionWarning, "V1beta1IPAddress": V1beta1IPAddress, "V1beta1IPAddressList": V1beta1IPAddressList, "V1beta1IPAddressSpec": V1beta1IPAddressSpec, + "V1beta1JSONPatch": V1beta1JSONPatch, "V1beta1LeaseCandidate": V1beta1LeaseCandidate, "V1beta1LeaseCandidateList": V1beta1LeaseCandidateList, "V1beta1LeaseCandidateSpec": V1beta1LeaseCandidateSpec, "V1beta1MatchCondition": V1beta1MatchCondition, "V1beta1MatchResources": V1beta1MatchResources, + "V1beta1MutatingAdmissionPolicy": V1beta1MutatingAdmissionPolicy, + "V1beta1MutatingAdmissionPolicyBinding": V1beta1MutatingAdmissionPolicyBinding, + "V1beta1MutatingAdmissionPolicyBindingList": V1beta1MutatingAdmissionPolicyBindingList, + "V1beta1MutatingAdmissionPolicyBindingSpec": V1beta1MutatingAdmissionPolicyBindingSpec, + "V1beta1MutatingAdmissionPolicyList": V1beta1MutatingAdmissionPolicyList, + "V1beta1MutatingAdmissionPolicySpec": V1beta1MutatingAdmissionPolicySpec, + "V1beta1Mutation": V1beta1Mutation, "V1beta1NamedRuleWithOperations": V1beta1NamedRuleWithOperations, "V1beta1NetworkDeviceData": V1beta1NetworkDeviceData, "V1beta1OpaqueDeviceConfiguration": V1beta1OpaqueDeviceConfiguration, @@ -2022,21 +2097,15 @@ let typeMap: {[index: string]: any} = { "V1beta1ServiceCIDRList": V1beta1ServiceCIDRList, "V1beta1ServiceCIDRSpec": V1beta1ServiceCIDRSpec, "V1beta1ServiceCIDRStatus": V1beta1ServiceCIDRStatus, - "V1beta1TypeChecking": V1beta1TypeChecking, - "V1beta1ValidatingAdmissionPolicy": V1beta1ValidatingAdmissionPolicy, - "V1beta1ValidatingAdmissionPolicyBinding": V1beta1ValidatingAdmissionPolicyBinding, - "V1beta1ValidatingAdmissionPolicyBindingList": V1beta1ValidatingAdmissionPolicyBindingList, - "V1beta1ValidatingAdmissionPolicyBindingSpec": V1beta1ValidatingAdmissionPolicyBindingSpec, - "V1beta1ValidatingAdmissionPolicyList": V1beta1ValidatingAdmissionPolicyList, - "V1beta1ValidatingAdmissionPolicySpec": V1beta1ValidatingAdmissionPolicySpec, - "V1beta1ValidatingAdmissionPolicyStatus": V1beta1ValidatingAdmissionPolicyStatus, - "V1beta1Validation": V1beta1Validation, "V1beta1Variable": V1beta1Variable, "V1beta1VolumeAttributesClass": V1beta1VolumeAttributesClass, "V1beta1VolumeAttributesClassList": V1beta1VolumeAttributesClassList, "V1beta2AllocatedDeviceStatus": V1beta2AllocatedDeviceStatus, "V1beta2AllocationResult": V1beta2AllocationResult, "V1beta2CELDeviceSelector": V1beta2CELDeviceSelector, + "V1beta2CapacityRequestPolicy": V1beta2CapacityRequestPolicy, + "V1beta2CapacityRequestPolicyRange": V1beta2CapacityRequestPolicyRange, + "V1beta2CapacityRequirements": V1beta2CapacityRequirements, "V1beta2Counter": V1beta2Counter, "V1beta2CounterSet": V1beta2CounterSet, "V1beta2Device": V1beta2Device, diff --git a/src/gen/models/RbacV1Subject.ts b/src/gen/models/RbacV1Subject.ts index 649273c7a1..cbd25197f6 100644 --- a/src/gen/models/RbacV1Subject.ts +++ b/src/gen/models/RbacV1Subject.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ResourceV1ResourceClaim.ts b/src/gen/models/ResourceV1ResourceClaim.ts new file mode 100644 index 0000000000..9d4d549191 --- /dev/null +++ b/src/gen/models/ResourceV1ResourceClaim.ts @@ -0,0 +1,76 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1ObjectMeta } from '../models/V1ObjectMeta.js'; +import { V1ResourceClaimSpec } from '../models/V1ResourceClaimSpec.js'; +import { V1ResourceClaimStatus } from '../models/V1ResourceClaimStatus.js'; +import { HttpFile } from '../http/http.js'; + +/** +* ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. +*/ +export class ResourceV1ResourceClaim { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + */ + 'apiVersion'?: string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + */ + 'kind'?: string; + 'metadata'?: V1ObjectMeta; + 'spec': V1ResourceClaimSpec; + 'status'?: V1ResourceClaimStatus; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "apiVersion", + "baseName": "apiVersion", + "type": "string", + "format": "" + }, + { + "name": "kind", + "baseName": "kind", + "type": "string", + "format": "" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "V1ObjectMeta", + "format": "" + }, + { + "name": "spec", + "baseName": "spec", + "type": "V1ResourceClaimSpec", + "format": "" + }, + { + "name": "status", + "baseName": "status", + "type": "V1ResourceClaimStatus", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ResourceV1ResourceClaim.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/StorageV1TokenRequest.ts b/src/gen/models/StorageV1TokenRequest.ts index bf460224bf..e35b2f3f87 100644 --- a/src/gen/models/StorageV1TokenRequest.ts +++ b/src/gen/models/StorageV1TokenRequest.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIGroup.ts b/src/gen/models/V1APIGroup.ts index d2d02ad249..4b3c64ac03 100644 --- a/src/gen/models/V1APIGroup.ts +++ b/src/gen/models/V1APIGroup.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIGroupList.ts b/src/gen/models/V1APIGroupList.ts index ce115021b3..f177fa3bda 100644 --- a/src/gen/models/V1APIGroupList.ts +++ b/src/gen/models/V1APIGroupList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIResource.ts b/src/gen/models/V1APIResource.ts index aa71791de9..5465c67676 100644 --- a/src/gen/models/V1APIResource.ts +++ b/src/gen/models/V1APIResource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIResourceList.ts b/src/gen/models/V1APIResourceList.ts index d16407facb..0d649e41f8 100644 --- a/src/gen/models/V1APIResourceList.ts +++ b/src/gen/models/V1APIResourceList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIService.ts b/src/gen/models/V1APIService.ts index 7299e1bda5..26290874fd 100644 --- a/src/gen/models/V1APIService.ts +++ b/src/gen/models/V1APIService.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIServiceCondition.ts b/src/gen/models/V1APIServiceCondition.ts index 571c187e38..11ee72a98a 100644 --- a/src/gen/models/V1APIServiceCondition.ts +++ b/src/gen/models/V1APIServiceCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIServiceList.ts b/src/gen/models/V1APIServiceList.ts index 7be9c582a8..e75c9dc5bc 100644 --- a/src/gen/models/V1APIServiceList.ts +++ b/src/gen/models/V1APIServiceList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIServiceSpec.ts b/src/gen/models/V1APIServiceSpec.ts index 6f414551d6..bcf99af6b8 100644 --- a/src/gen/models/V1APIServiceSpec.ts +++ b/src/gen/models/V1APIServiceSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIServiceStatus.ts b/src/gen/models/V1APIServiceStatus.ts index 1fa54138af..67adb94dbd 100644 --- a/src/gen/models/V1APIServiceStatus.ts +++ b/src/gen/models/V1APIServiceStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIVersions.ts b/src/gen/models/V1APIVersions.ts index 4cf30011f1..f9333a9575 100644 --- a/src/gen/models/V1APIVersions.ts +++ b/src/gen/models/V1APIVersions.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AWSElasticBlockStoreVolumeSource.ts b/src/gen/models/V1AWSElasticBlockStoreVolumeSource.ts index 0f4c56f717..3e52a1a4c4 100644 --- a/src/gen/models/V1AWSElasticBlockStoreVolumeSource.ts +++ b/src/gen/models/V1AWSElasticBlockStoreVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Affinity.ts b/src/gen/models/V1Affinity.ts index a137e11828..3704e7066e 100644 --- a/src/gen/models/V1Affinity.ts +++ b/src/gen/models/V1Affinity.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AggregationRule.ts b/src/gen/models/V1AggregationRule.ts index 5ee6131218..e43049efa2 100644 --- a/src/gen/models/V1AggregationRule.ts +++ b/src/gen/models/V1AggregationRule.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AllocatedDeviceStatus.ts b/src/gen/models/V1AllocatedDeviceStatus.ts new file mode 100644 index 0000000000..aab5923288 --- /dev/null +++ b/src/gen/models/V1AllocatedDeviceStatus.ts @@ -0,0 +1,101 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1Condition } from '../models/V1Condition.js'; +import { V1NetworkDeviceData } from '../models/V1NetworkDeviceData.js'; +import { HttpFile } from '../http/http.js'; + +/** +* AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. +*/ +export class V1AllocatedDeviceStatus { + /** + * Conditions contains the latest observation of the device\'s state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries. + */ + 'conditions'?: Array; + /** + * Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. + */ + 'data'?: any; + /** + * Device references one device instance via its name in the driver\'s resource pool. It must be a DNS label. + */ + 'device': string; + /** + * Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. + */ + 'driver': string; + 'networkData'?: V1NetworkDeviceData; + /** + * This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. + */ + 'pool': string; + /** + * ShareID uniquely identifies an individual allocation share of the device. + */ + 'shareID'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "conditions", + "baseName": "conditions", + "type": "Array", + "format": "" + }, + { + "name": "data", + "baseName": "data", + "type": "any", + "format": "" + }, + { + "name": "device", + "baseName": "device", + "type": "string", + "format": "" + }, + { + "name": "driver", + "baseName": "driver", + "type": "string", + "format": "" + }, + { + "name": "networkData", + "baseName": "networkData", + "type": "V1NetworkDeviceData", + "format": "" + }, + { + "name": "pool", + "baseName": "pool", + "type": "string", + "format": "" + }, + { + "name": "shareID", + "baseName": "shareID", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1AllocatedDeviceStatus.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1AllocationResult.ts b/src/gen/models/V1AllocationResult.ts new file mode 100644 index 0000000000..b8480d8dce --- /dev/null +++ b/src/gen/models/V1AllocationResult.ts @@ -0,0 +1,58 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceAllocationResult } from '../models/V1DeviceAllocationResult.js'; +import { V1NodeSelector } from '../models/V1NodeSelector.js'; +import { HttpFile } from '../http/http.js'; + +/** +* AllocationResult contains attributes of an allocated resource. +*/ +export class V1AllocationResult { + /** + * AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + */ + 'allocationTimestamp'?: Date; + 'devices'?: V1DeviceAllocationResult; + 'nodeSelector'?: V1NodeSelector; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "allocationTimestamp", + "baseName": "allocationTimestamp", + "type": "Date", + "format": "date-time" + }, + { + "name": "devices", + "baseName": "devices", + "type": "V1DeviceAllocationResult", + "format": "" + }, + { + "name": "nodeSelector", + "baseName": "nodeSelector", + "type": "V1NodeSelector", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1AllocationResult.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1AppArmorProfile.ts b/src/gen/models/V1AppArmorProfile.ts index c40a755a19..cb129b4a82 100644 --- a/src/gen/models/V1AppArmorProfile.ts +++ b/src/gen/models/V1AppArmorProfile.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AttachedVolume.ts b/src/gen/models/V1AttachedVolume.ts index 512ddc3660..a37d10362d 100644 --- a/src/gen/models/V1AttachedVolume.ts +++ b/src/gen/models/V1AttachedVolume.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AuditAnnotation.ts b/src/gen/models/V1AuditAnnotation.ts index 71f0e507d1..5846fc50eb 100644 --- a/src/gen/models/V1AuditAnnotation.ts +++ b/src/gen/models/V1AuditAnnotation.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AzureDiskVolumeSource.ts b/src/gen/models/V1AzureDiskVolumeSource.ts index eadc88fbca..22ea3aa0d8 100644 --- a/src/gen/models/V1AzureDiskVolumeSource.ts +++ b/src/gen/models/V1AzureDiskVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AzureFilePersistentVolumeSource.ts b/src/gen/models/V1AzureFilePersistentVolumeSource.ts index 59dd4d0eb2..2bf91ae03a 100644 --- a/src/gen/models/V1AzureFilePersistentVolumeSource.ts +++ b/src/gen/models/V1AzureFilePersistentVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AzureFileVolumeSource.ts b/src/gen/models/V1AzureFileVolumeSource.ts index 1d3da5b7db..68353ba63e 100644 --- a/src/gen/models/V1AzureFileVolumeSource.ts +++ b/src/gen/models/V1AzureFileVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Binding.ts b/src/gen/models/V1Binding.ts index 24f1b6d0ca..c8e29b68fe 100644 --- a/src/gen/models/V1Binding.ts +++ b/src/gen/models/V1Binding.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1BoundObjectReference.ts b/src/gen/models/V1BoundObjectReference.ts index 252d18a7bf..f353a2057a 100644 --- a/src/gen/models/V1BoundObjectReference.ts +++ b/src/gen/models/V1BoundObjectReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CELDeviceSelector.ts b/src/gen/models/V1CELDeviceSelector.ts new file mode 100644 index 0000000000..3478173156 --- /dev/null +++ b/src/gen/models/V1CELDeviceSelector.ts @@ -0,0 +1,42 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* CELDeviceSelector contains a CEL expression for selecting a device. +*/ +export class V1CELDeviceSelector { + /** + * Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression\'s input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device\'s attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device\'s capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. + */ + 'expression': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "expression", + "baseName": "expression", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CELDeviceSelector.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CSIDriver.ts b/src/gen/models/V1CSIDriver.ts index a0dc6b17e8..c8243b45ee 100644 --- a/src/gen/models/V1CSIDriver.ts +++ b/src/gen/models/V1CSIDriver.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIDriverList.ts b/src/gen/models/V1CSIDriverList.ts index 986c215721..ecae18566d 100644 --- a/src/gen/models/V1CSIDriverList.ts +++ b/src/gen/models/V1CSIDriverList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIDriverSpec.ts b/src/gen/models/V1CSIDriverSpec.ts index b018f9ce9a..868d8307bc 100644 --- a/src/gen/models/V1CSIDriverSpec.ts +++ b/src/gen/models/V1CSIDriverSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import { HttpFile } from '../http/http.js'; */ export class V1CSIDriverSpec { /** - * attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. + * attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. */ 'attachRequired'?: boolean; /** @@ -26,7 +26,7 @@ export class V1CSIDriverSpec { */ 'fsGroupPolicy'?: string; /** - * nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. + * nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. */ 'nodeAllocatableUpdatePeriodSeconds'?: number; /** diff --git a/src/gen/models/V1CSINode.ts b/src/gen/models/V1CSINode.ts index 8d8ad57efd..aad7111591 100644 --- a/src/gen/models/V1CSINode.ts +++ b/src/gen/models/V1CSINode.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSINodeDriver.ts b/src/gen/models/V1CSINodeDriver.ts index cb54a472df..43833e4c79 100644 --- a/src/gen/models/V1CSINodeDriver.ts +++ b/src/gen/models/V1CSINodeDriver.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSINodeList.ts b/src/gen/models/V1CSINodeList.ts index acf439fe85..cf98c2f3c5 100644 --- a/src/gen/models/V1CSINodeList.ts +++ b/src/gen/models/V1CSINodeList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSINodeSpec.ts b/src/gen/models/V1CSINodeSpec.ts index 157e839724..4b44f128f3 100644 --- a/src/gen/models/V1CSINodeSpec.ts +++ b/src/gen/models/V1CSINodeSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIPersistentVolumeSource.ts b/src/gen/models/V1CSIPersistentVolumeSource.ts index b5ee37ce0c..248c818f14 100644 --- a/src/gen/models/V1CSIPersistentVolumeSource.ts +++ b/src/gen/models/V1CSIPersistentVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIStorageCapacity.ts b/src/gen/models/V1CSIStorageCapacity.ts index ca5bafadb9..1ab50b5186 100644 --- a/src/gen/models/V1CSIStorageCapacity.ts +++ b/src/gen/models/V1CSIStorageCapacity.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIStorageCapacityList.ts b/src/gen/models/V1CSIStorageCapacityList.ts index be3bed8964..f5bafa7d3b 100644 --- a/src/gen/models/V1CSIStorageCapacityList.ts +++ b/src/gen/models/V1CSIStorageCapacityList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIVolumeSource.ts b/src/gen/models/V1CSIVolumeSource.ts index b44677bfeb..68a1ad5b5b 100644 --- a/src/gen/models/V1CSIVolumeSource.ts +++ b/src/gen/models/V1CSIVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Capabilities.ts b/src/gen/models/V1Capabilities.ts index 16f80e08da..4a84f05d7a 100644 --- a/src/gen/models/V1Capabilities.ts +++ b/src/gen/models/V1Capabilities.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CapacityRequestPolicy.ts b/src/gen/models/V1CapacityRequestPolicy.ts new file mode 100644 index 0000000000..c94c3b7e6b --- /dev/null +++ b/src/gen/models/V1CapacityRequestPolicy.ts @@ -0,0 +1,60 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1CapacityRequestPolicyRange } from '../models/V1CapacityRequestPolicyRange.js'; +import { HttpFile } from '../http/http.js'; + +/** +* CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. +*/ +export class V1CapacityRequestPolicy { + /** + * Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest\'s Capacity. + */ + '_default'?: string; + 'validRange'?: V1CapacityRequestPolicyRange; + /** + * ValidValues defines a set of acceptable quantity values in consuming requests. Must not contain more than 10 entries. Must be sorted in ascending order. If this field is set, Default must be defined and it must be included in ValidValues list. If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. + */ + 'validValues'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "_default", + "baseName": "default", + "type": "string", + "format": "" + }, + { + "name": "validRange", + "baseName": "validRange", + "type": "V1CapacityRequestPolicyRange", + "format": "" + }, + { + "name": "validValues", + "baseName": "validValues", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CapacityRequestPolicy.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CapacityRequestPolicyRange.ts b/src/gen/models/V1CapacityRequestPolicyRange.ts new file mode 100644 index 0000000000..3afb756ba2 --- /dev/null +++ b/src/gen/models/V1CapacityRequestPolicyRange.ts @@ -0,0 +1,62 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. +*/ +export class V1CapacityRequestPolicyRange { + /** + * Max defines the upper limit for capacity that can be requested. Max must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum. + */ + 'max'?: string; + /** + * Min specifies the minimum capacity allowed for a consumption request. Min must be greater than or equal to zero, and less than or equal to the capacity value. requestPolicy.default must be more than or equal to the minimum. + */ + 'min': string; + /** + * Step defines the step size between valid capacity amounts within the range. Max (if set) and requestPolicy.default must be a multiple of Step. Min + Step must be less than or equal to the capacity value. + */ + 'step'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "max", + "baseName": "max", + "type": "string", + "format": "" + }, + { + "name": "min", + "baseName": "min", + "type": "string", + "format": "" + }, + { + "name": "step", + "baseName": "step", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CapacityRequestPolicyRange.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CapacityRequirements.ts b/src/gen/models/V1CapacityRequirements.ts new file mode 100644 index 0000000000..3eafa69e6b --- /dev/null +++ b/src/gen/models/V1CapacityRequirements.ts @@ -0,0 +1,42 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* CapacityRequirements defines the capacity requirements for a specific device request. +*/ +export class V1CapacityRequirements { + /** + * Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[]..compareTo(quantity()) >= 0`. For example, device.capacity[\'test-driver.cdi.k8s.io\'].counters.compareTo(quantity(\'2\')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. + */ + 'requests'?: { [key: string]: string; }; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "requests", + "baseName": "requests", + "type": "{ [key: string]: string; }", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CapacityRequirements.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CephFSPersistentVolumeSource.ts b/src/gen/models/V1CephFSPersistentVolumeSource.ts index 7a119820ad..840e3aea6c 100644 --- a/src/gen/models/V1CephFSPersistentVolumeSource.ts +++ b/src/gen/models/V1CephFSPersistentVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CephFSVolumeSource.ts b/src/gen/models/V1CephFSVolumeSource.ts index 74fb32764f..a7b350e616 100644 --- a/src/gen/models/V1CephFSVolumeSource.ts +++ b/src/gen/models/V1CephFSVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequest.ts b/src/gen/models/V1CertificateSigningRequest.ts index 3148cfd942..e124dd004c 100644 --- a/src/gen/models/V1CertificateSigningRequest.ts +++ b/src/gen/models/V1CertificateSigningRequest.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequestCondition.ts b/src/gen/models/V1CertificateSigningRequestCondition.ts index ce2505548c..8decfda231 100644 --- a/src/gen/models/V1CertificateSigningRequestCondition.ts +++ b/src/gen/models/V1CertificateSigningRequestCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequestList.ts b/src/gen/models/V1CertificateSigningRequestList.ts index 71fd8aafb3..264e47e622 100644 --- a/src/gen/models/V1CertificateSigningRequestList.ts +++ b/src/gen/models/V1CertificateSigningRequestList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequestSpec.ts b/src/gen/models/V1CertificateSigningRequestSpec.ts index 81ebab7c32..df7510585e 100644 --- a/src/gen/models/V1CertificateSigningRequestSpec.ts +++ b/src/gen/models/V1CertificateSigningRequestSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequestStatus.ts b/src/gen/models/V1CertificateSigningRequestStatus.ts index bf11d3db8b..b592847a56 100644 --- a/src/gen/models/V1CertificateSigningRequestStatus.ts +++ b/src/gen/models/V1CertificateSigningRequestStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CinderPersistentVolumeSource.ts b/src/gen/models/V1CinderPersistentVolumeSource.ts index 0137c74479..5cebda4f15 100644 --- a/src/gen/models/V1CinderPersistentVolumeSource.ts +++ b/src/gen/models/V1CinderPersistentVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CinderVolumeSource.ts b/src/gen/models/V1CinderVolumeSource.ts index 75db927737..a5deb5a0f4 100644 --- a/src/gen/models/V1CinderVolumeSource.ts +++ b/src/gen/models/V1CinderVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClientIPConfig.ts b/src/gen/models/V1ClientIPConfig.ts index b1670d9bfc..c1086ca08e 100644 --- a/src/gen/models/V1ClientIPConfig.ts +++ b/src/gen/models/V1ClientIPConfig.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterRole.ts b/src/gen/models/V1ClusterRole.ts index b30bd447b4..7b70f07194 100644 --- a/src/gen/models/V1ClusterRole.ts +++ b/src/gen/models/V1ClusterRole.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterRoleBinding.ts b/src/gen/models/V1ClusterRoleBinding.ts index 30219673ed..9d28735e73 100644 --- a/src/gen/models/V1ClusterRoleBinding.ts +++ b/src/gen/models/V1ClusterRoleBinding.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterRoleBindingList.ts b/src/gen/models/V1ClusterRoleBindingList.ts index e6798622d8..53079945bb 100644 --- a/src/gen/models/V1ClusterRoleBindingList.ts +++ b/src/gen/models/V1ClusterRoleBindingList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterRoleList.ts b/src/gen/models/V1ClusterRoleList.ts index 9c48aad122..b05f324b1b 100644 --- a/src/gen/models/V1ClusterRoleList.ts +++ b/src/gen/models/V1ClusterRoleList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterTrustBundleProjection.ts b/src/gen/models/V1ClusterTrustBundleProjection.ts index 402173e5ac..dd880cc024 100644 --- a/src/gen/models/V1ClusterTrustBundleProjection.ts +++ b/src/gen/models/V1ClusterTrustBundleProjection.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ComponentCondition.ts b/src/gen/models/V1ComponentCondition.ts index c3a71b0ac9..ef6cef82c7 100644 --- a/src/gen/models/V1ComponentCondition.ts +++ b/src/gen/models/V1ComponentCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ComponentStatus.ts b/src/gen/models/V1ComponentStatus.ts index 10c726e39f..0eceaeed8f 100644 --- a/src/gen/models/V1ComponentStatus.ts +++ b/src/gen/models/V1ComponentStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ComponentStatusList.ts b/src/gen/models/V1ComponentStatusList.ts index f2b13032bf..2b31aa6aef 100644 --- a/src/gen/models/V1ComponentStatusList.ts +++ b/src/gen/models/V1ComponentStatusList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Condition.ts b/src/gen/models/V1Condition.ts index 57391a2df0..67cc73f58b 100644 --- a/src/gen/models/V1Condition.ts +++ b/src/gen/models/V1Condition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMap.ts b/src/gen/models/V1ConfigMap.ts index 3aec371526..e49d55ef9c 100644 --- a/src/gen/models/V1ConfigMap.ts +++ b/src/gen/models/V1ConfigMap.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapEnvSource.ts b/src/gen/models/V1ConfigMapEnvSource.ts index 0d4ff54aad..cdab7f5ec9 100644 --- a/src/gen/models/V1ConfigMapEnvSource.ts +++ b/src/gen/models/V1ConfigMapEnvSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapKeySelector.ts b/src/gen/models/V1ConfigMapKeySelector.ts index 48ac8d7662..bd42ac0033 100644 --- a/src/gen/models/V1ConfigMapKeySelector.ts +++ b/src/gen/models/V1ConfigMapKeySelector.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapList.ts b/src/gen/models/V1ConfigMapList.ts index 0d8349586c..e9bed71663 100644 --- a/src/gen/models/V1ConfigMapList.ts +++ b/src/gen/models/V1ConfigMapList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapNodeConfigSource.ts b/src/gen/models/V1ConfigMapNodeConfigSource.ts index e7caadaebd..69a2d5069e 100644 --- a/src/gen/models/V1ConfigMapNodeConfigSource.ts +++ b/src/gen/models/V1ConfigMapNodeConfigSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapProjection.ts b/src/gen/models/V1ConfigMapProjection.ts index deb9efe83a..2a3f69f2ef 100644 --- a/src/gen/models/V1ConfigMapProjection.ts +++ b/src/gen/models/V1ConfigMapProjection.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapVolumeSource.ts b/src/gen/models/V1ConfigMapVolumeSource.ts index 62b53afe18..fe9b506a21 100644 --- a/src/gen/models/V1ConfigMapVolumeSource.ts +++ b/src/gen/models/V1ConfigMapVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Container.ts b/src/gen/models/V1Container.ts index ec0647df3c..0d6b3fbfa6 100644 --- a/src/gen/models/V1Container.ts +++ b/src/gen/models/V1Container.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,6 +12,7 @@ import { V1ContainerPort } from '../models/V1ContainerPort.js'; import { V1ContainerResizePolicy } from '../models/V1ContainerResizePolicy.js'; +import { V1ContainerRestartRule } from '../models/V1ContainerRestartRule.js'; import { V1EnvFromSource } from '../models/V1EnvFromSource.js'; import { V1EnvVar } from '../models/V1EnvVar.js'; import { V1Lifecycle } from '../models/V1Lifecycle.js'; @@ -39,7 +40,7 @@ export class V1Container { */ 'env'?: Array; /** - * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except \'=\'. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. */ 'envFrom'?: Array; /** @@ -67,9 +68,13 @@ export class V1Container { 'resizePolicy'?: Array; 'resources'?: V1ResourceRequirements; /** - * RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod\'s restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. + * RestartPolicy defines the restart behavior of individual containers in a pod. This overrides the pod-level restart policy. When this field is not specified, the restart behavior is defined by the Pod\'s restart policy and the container type. Additionally, setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. */ 'restartPolicy'?: string; + /** + * Represents a list of rules to be checked to determine if the container should be restarted on exit. The rules are evaluated in order. Once a rule matches a container exit condition, the remaining rules are ignored. If no rule matches the container exit condition, the Container-level restart policy determines the whether the container is restarted or not. Constraints on the rules: - At most 20 rules are allowed. - Rules can have the same action. - Identical rules are not forbidden in validations. When rules are specified, container MUST set RestartPolicy explicitly even it if matches the Pod\'s RestartPolicy. + */ + 'restartPolicyRules'?: Array; 'securityContext'?: V1SecurityContext; 'startupProbe'?: V1Probe; /** @@ -194,6 +199,12 @@ export class V1Container { "type": "string", "format": "" }, + { + "name": "restartPolicyRules", + "baseName": "restartPolicyRules", + "type": "Array", + "format": "" + }, { "name": "securityContext", "baseName": "securityContext", diff --git a/src/gen/models/V1ContainerExtendedResourceRequest.ts b/src/gen/models/V1ContainerExtendedResourceRequest.ts new file mode 100644 index 0000000000..51ec116925 --- /dev/null +++ b/src/gen/models/V1ContainerExtendedResourceRequest.ts @@ -0,0 +1,62 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name. +*/ +export class V1ContainerExtendedResourceRequest { + /** + * The name of the container requesting resources. + */ + 'containerName': string; + /** + * The name of the request in the special ResourceClaim which corresponds to the extended resource. + */ + 'requestName': string; + /** + * The name of the extended resource in that container which gets backed by DRA. + */ + 'resourceName': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "containerName", + "baseName": "containerName", + "type": "string", + "format": "" + }, + { + "name": "requestName", + "baseName": "requestName", + "type": "string", + "format": "" + }, + { + "name": "resourceName", + "baseName": "resourceName", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1ContainerExtendedResourceRequest.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1ContainerImage.ts b/src/gen/models/V1ContainerImage.ts index 18610d6af4..1e825215d3 100644 --- a/src/gen/models/V1ContainerImage.ts +++ b/src/gen/models/V1ContainerImage.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerPort.ts b/src/gen/models/V1ContainerPort.ts index a89575147f..b9ae26e018 100644 --- a/src/gen/models/V1ContainerPort.ts +++ b/src/gen/models/V1ContainerPort.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerResizePolicy.ts b/src/gen/models/V1ContainerResizePolicy.ts index 5a3bebbcf8..a674af1b71 100644 --- a/src/gen/models/V1ContainerResizePolicy.ts +++ b/src/gen/models/V1ContainerResizePolicy.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerRestartRule.ts b/src/gen/models/V1ContainerRestartRule.ts new file mode 100644 index 0000000000..9a43bb595b --- /dev/null +++ b/src/gen/models/V1ContainerRestartRule.ts @@ -0,0 +1,50 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1ContainerRestartRuleOnExitCodes } from '../models/V1ContainerRestartRuleOnExitCodes.js'; +import { HttpFile } from '../http/http.js'; + +/** +* ContainerRestartRule describes how a container exit is handled. +*/ +export class V1ContainerRestartRule { + /** + * Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container. + */ + 'action': string; + 'exitCodes'?: V1ContainerRestartRuleOnExitCodes; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "action", + "baseName": "action", + "type": "string", + "format": "" + }, + { + "name": "exitCodes", + "baseName": "exitCodes", + "type": "V1ContainerRestartRuleOnExitCodes", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1ContainerRestartRule.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1ContainerRestartRuleOnExitCodes.ts b/src/gen/models/V1ContainerRestartRuleOnExitCodes.ts new file mode 100644 index 0000000000..42ddd8ddaa --- /dev/null +++ b/src/gen/models/V1ContainerRestartRuleOnExitCodes.ts @@ -0,0 +1,52 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes. +*/ +export class V1ContainerRestartRuleOnExitCodes { + /** + * Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values. - NotIn: the requirement is satisfied if the container exit code is not in the set of specified values. + */ + 'operator': string; + /** + * Specifies the set of values to check for container exit codes. At most 255 elements are allowed. + */ + 'values'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "operator", + "baseName": "operator", + "type": "string", + "format": "" + }, + { + "name": "values", + "baseName": "values", + "type": "Array", + "format": "int32" + } ]; + + static getAttributeTypeMap() { + return V1ContainerRestartRuleOnExitCodes.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1ContainerState.ts b/src/gen/models/V1ContainerState.ts index 26fad0c547..1c6ee91deb 100644 --- a/src/gen/models/V1ContainerState.ts +++ b/src/gen/models/V1ContainerState.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerStateRunning.ts b/src/gen/models/V1ContainerStateRunning.ts index 53ba40fd8a..74694f96af 100644 --- a/src/gen/models/V1ContainerStateRunning.ts +++ b/src/gen/models/V1ContainerStateRunning.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerStateTerminated.ts b/src/gen/models/V1ContainerStateTerminated.ts index a9a3ff30a5..d79f278a5e 100644 --- a/src/gen/models/V1ContainerStateTerminated.ts +++ b/src/gen/models/V1ContainerStateTerminated.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerStateWaiting.ts b/src/gen/models/V1ContainerStateWaiting.ts index 72ad82b66f..e94684962b 100644 --- a/src/gen/models/V1ContainerStateWaiting.ts +++ b/src/gen/models/V1ContainerStateWaiting.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerStatus.ts b/src/gen/models/V1ContainerStatus.ts index b5150066e5..f4424486a1 100644 --- a/src/gen/models/V1ContainerStatus.ts +++ b/src/gen/models/V1ContainerStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerUser.ts b/src/gen/models/V1ContainerUser.ts index 6000dfcfc8..245b2a0e34 100644 --- a/src/gen/models/V1ContainerUser.ts +++ b/src/gen/models/V1ContainerUser.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ControllerRevision.ts b/src/gen/models/V1ControllerRevision.ts index 2e9ad49db7..bbbc4fbfdc 100644 --- a/src/gen/models/V1ControllerRevision.ts +++ b/src/gen/models/V1ControllerRevision.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ControllerRevisionList.ts b/src/gen/models/V1ControllerRevisionList.ts index 3ecc0835fd..c4f070b247 100644 --- a/src/gen/models/V1ControllerRevisionList.ts +++ b/src/gen/models/V1ControllerRevisionList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Counter.ts b/src/gen/models/V1Counter.ts new file mode 100644 index 0000000000..3c17d27a06 --- /dev/null +++ b/src/gen/models/V1Counter.ts @@ -0,0 +1,42 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* Counter describes a quantity associated with a device. +*/ +export class V1Counter { + /** + * Value defines how much of a certain device counter is available. + */ + 'value': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "value", + "baseName": "value", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1Counter.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CounterSet.ts b/src/gen/models/V1CounterSet.ts new file mode 100644 index 0000000000..dbab57c539 --- /dev/null +++ b/src/gen/models/V1CounterSet.ts @@ -0,0 +1,53 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1Counter } from '../models/V1Counter.js'; +import { HttpFile } from '../http/http.js'; + +/** +* CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. +*/ +export class V1CounterSet { + /** + * Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters in all sets is 32. + */ + 'counters': { [key: string]: V1Counter; }; + /** + * Name defines the name of the counter set. It must be a DNS label. + */ + 'name': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "counters", + "baseName": "counters", + "type": "{ [key: string]: V1Counter; }", + "format": "" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CounterSet.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CronJob.ts b/src/gen/models/V1CronJob.ts index 25c5746b51..d73dc9fe9f 100644 --- a/src/gen/models/V1CronJob.ts +++ b/src/gen/models/V1CronJob.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CronJobList.ts b/src/gen/models/V1CronJobList.ts index 17a6c66f2b..45b4e62700 100644 --- a/src/gen/models/V1CronJobList.ts +++ b/src/gen/models/V1CronJobList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CronJobSpec.ts b/src/gen/models/V1CronJobSpec.ts index c726617fa9..4fe58c33d6 100644 --- a/src/gen/models/V1CronJobSpec.ts +++ b/src/gen/models/V1CronJobSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CronJobStatus.ts b/src/gen/models/V1CronJobStatus.ts index 164f20d4df..c94f7d6614 100644 --- a/src/gen/models/V1CronJobStatus.ts +++ b/src/gen/models/V1CronJobStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CrossVersionObjectReference.ts b/src/gen/models/V1CrossVersionObjectReference.ts index 6425ed47ea..9a0cc8b6f6 100644 --- a/src/gen/models/V1CrossVersionObjectReference.ts +++ b/src/gen/models/V1CrossVersionObjectReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceColumnDefinition.ts b/src/gen/models/V1CustomResourceColumnDefinition.ts index e05dd40eef..ffa7de464a 100644 --- a/src/gen/models/V1CustomResourceColumnDefinition.ts +++ b/src/gen/models/V1CustomResourceColumnDefinition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceConversion.ts b/src/gen/models/V1CustomResourceConversion.ts index 35d9304667..d0e255b403 100644 --- a/src/gen/models/V1CustomResourceConversion.ts +++ b/src/gen/models/V1CustomResourceConversion.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinition.ts b/src/gen/models/V1CustomResourceDefinition.ts index abab9bf72e..ddc9c874d2 100644 --- a/src/gen/models/V1CustomResourceDefinition.ts +++ b/src/gen/models/V1CustomResourceDefinition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionCondition.ts b/src/gen/models/V1CustomResourceDefinitionCondition.ts index ae426a4265..eb5b96d436 100644 --- a/src/gen/models/V1CustomResourceDefinitionCondition.ts +++ b/src/gen/models/V1CustomResourceDefinitionCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionList.ts b/src/gen/models/V1CustomResourceDefinitionList.ts index cc418ece5f..a169956ca2 100644 --- a/src/gen/models/V1CustomResourceDefinitionList.ts +++ b/src/gen/models/V1CustomResourceDefinitionList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionNames.ts b/src/gen/models/V1CustomResourceDefinitionNames.ts index 07f9814477..ffc02e9802 100644 --- a/src/gen/models/V1CustomResourceDefinitionNames.ts +++ b/src/gen/models/V1CustomResourceDefinitionNames.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionSpec.ts b/src/gen/models/V1CustomResourceDefinitionSpec.ts index e79b2e4228..190a2eadb8 100644 --- a/src/gen/models/V1CustomResourceDefinitionSpec.ts +++ b/src/gen/models/V1CustomResourceDefinitionSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionStatus.ts b/src/gen/models/V1CustomResourceDefinitionStatus.ts index cf7dc894c4..fc7a65d3d2 100644 --- a/src/gen/models/V1CustomResourceDefinitionStatus.ts +++ b/src/gen/models/V1CustomResourceDefinitionStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionVersion.ts b/src/gen/models/V1CustomResourceDefinitionVersion.ts index 6949b2e1c7..a8124e58e5 100644 --- a/src/gen/models/V1CustomResourceDefinitionVersion.ts +++ b/src/gen/models/V1CustomResourceDefinitionVersion.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceSubresourceScale.ts b/src/gen/models/V1CustomResourceSubresourceScale.ts index 35758622de..8384c51cac 100644 --- a/src/gen/models/V1CustomResourceSubresourceScale.ts +++ b/src/gen/models/V1CustomResourceSubresourceScale.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceSubresources.ts b/src/gen/models/V1CustomResourceSubresources.ts index 2a62f9a550..da4419916c 100644 --- a/src/gen/models/V1CustomResourceSubresources.ts +++ b/src/gen/models/V1CustomResourceSubresources.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceValidation.ts b/src/gen/models/V1CustomResourceValidation.ts index f38796df19..e0e40bb712 100644 --- a/src/gen/models/V1CustomResourceValidation.ts +++ b/src/gen/models/V1CustomResourceValidation.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonEndpoint.ts b/src/gen/models/V1DaemonEndpoint.ts index 57dd4e16a9..d861a7b315 100644 --- a/src/gen/models/V1DaemonEndpoint.ts +++ b/src/gen/models/V1DaemonEndpoint.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSet.ts b/src/gen/models/V1DaemonSet.ts index b05f6f8f26..fe4b4e78de 100644 --- a/src/gen/models/V1DaemonSet.ts +++ b/src/gen/models/V1DaemonSet.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetCondition.ts b/src/gen/models/V1DaemonSetCondition.ts index ac3349bb7c..3611f67a6f 100644 --- a/src/gen/models/V1DaemonSetCondition.ts +++ b/src/gen/models/V1DaemonSetCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetList.ts b/src/gen/models/V1DaemonSetList.ts index da2cfe46b5..4ffb55b295 100644 --- a/src/gen/models/V1DaemonSetList.ts +++ b/src/gen/models/V1DaemonSetList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetSpec.ts b/src/gen/models/V1DaemonSetSpec.ts index 981a6fb7b2..a92e5b6a13 100644 --- a/src/gen/models/V1DaemonSetSpec.ts +++ b/src/gen/models/V1DaemonSetSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetStatus.ts b/src/gen/models/V1DaemonSetStatus.ts index 16eada4c60..ca8f9005bd 100644 --- a/src/gen/models/V1DaemonSetStatus.ts +++ b/src/gen/models/V1DaemonSetStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetUpdateStrategy.ts b/src/gen/models/V1DaemonSetUpdateStrategy.ts index 77d2ae877d..b8f783b39b 100644 --- a/src/gen/models/V1DaemonSetUpdateStrategy.ts +++ b/src/gen/models/V1DaemonSetUpdateStrategy.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeleteOptions.ts b/src/gen/models/V1DeleteOptions.ts index fea76a7c07..a09306bb1d 100644 --- a/src/gen/models/V1DeleteOptions.ts +++ b/src/gen/models/V1DeleteOptions.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Deployment.ts b/src/gen/models/V1Deployment.ts index 9943df46d3..230012a4da 100644 --- a/src/gen/models/V1Deployment.ts +++ b/src/gen/models/V1Deployment.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeploymentCondition.ts b/src/gen/models/V1DeploymentCondition.ts index bf0f4081ff..ea450de5a9 100644 --- a/src/gen/models/V1DeploymentCondition.ts +++ b/src/gen/models/V1DeploymentCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeploymentList.ts b/src/gen/models/V1DeploymentList.ts index 327fdfd88a..f701f4c0b0 100644 --- a/src/gen/models/V1DeploymentList.ts +++ b/src/gen/models/V1DeploymentList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeploymentSpec.ts b/src/gen/models/V1DeploymentSpec.ts index 219f74cf48..79eb56f345 100644 --- a/src/gen/models/V1DeploymentSpec.ts +++ b/src/gen/models/V1DeploymentSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeploymentStatus.ts b/src/gen/models/V1DeploymentStatus.ts index e5f45a91da..301d9bba75 100644 --- a/src/gen/models/V1DeploymentStatus.ts +++ b/src/gen/models/V1DeploymentStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeploymentStrategy.ts b/src/gen/models/V1DeploymentStrategy.ts index c4402c5638..754191c25d 100644 --- a/src/gen/models/V1DeploymentStrategy.ts +++ b/src/gen/models/V1DeploymentStrategy.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.33.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Device.ts b/src/gen/models/V1Device.ts new file mode 100644 index 0000000000..d9b6756db3 --- /dev/null +++ b/src/gen/models/V1Device.ts @@ -0,0 +1,154 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceAttribute } from '../models/V1DeviceAttribute.js'; +import { V1DeviceCapacity } from '../models/V1DeviceCapacity.js'; +import { V1DeviceCounterConsumption } from '../models/V1DeviceCounterConsumption.js'; +import { V1DeviceTaint } from '../models/V1DeviceTaint.js'; +import { V1NodeSelector } from '../models/V1NodeSelector.js'; +import { HttpFile } from '../http/http.js'; + +/** +* Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. +*/ +export class V1Device { + /** + * AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + */ + 'allNodes'?: boolean; + /** + * AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. + */ + 'allowMultipleAllocations'?: boolean; + /** + * Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. + */ + 'attributes'?: { [key: string]: V1DeviceAttribute; }; + /** + * BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindingConditions'?: Array; + /** + * BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindingFailureConditions'?: Array; + /** + * BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindsToNode'?: boolean; + /** + * Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. + */ + 'capacity'?: { [key: string]: V1DeviceCapacity; }; + /** + * ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). + */ + 'consumesCounters'?: Array; + /** + * Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. + */ + 'name': string; + /** + * NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + */ + 'nodeName'?: string; + 'nodeSelector'?: V1NodeSelector; + /** + * If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + */ + 'taints'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "allNodes", + "baseName": "allNodes", + "type": "boolean", + "format": "" + }, + { + "name": "allowMultipleAllocations", + "baseName": "allowMultipleAllocations", + "type": "boolean", + "format": "" + }, + { + "name": "attributes", + "baseName": "attributes", + "type": "{ [key: string]: V1DeviceAttribute; }", + "format": "" + }, + { + "name": "bindingConditions", + "baseName": "bindingConditions", + "type": "Array", + "format": "" + }, + { + "name": "bindingFailureConditions", + "baseName": "bindingFailureConditions", + "type": "Array", + "format": "" + }, + { + "name": "bindsToNode", + "baseName": "bindsToNode", + "type": "boolean", + "format": "" + }, + { + "name": "capacity", + "baseName": "capacity", + "type": "{ [key: string]: V1DeviceCapacity; }", + "format": "" + }, + { + "name": "consumesCounters", + "baseName": "consumesCounters", + "type": "Array", + "format": "" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + }, + { + "name": "nodeName", + "baseName": "nodeName", + "type": "string", + "format": "" + }, + { + "name": "nodeSelector", + "baseName": "nodeSelector", + "type": "V1NodeSelector", + "format": "" + }, + { + "name": "taints", + "baseName": "taints", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1Device.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceAllocationConfiguration.ts b/src/gen/models/V1DeviceAllocationConfiguration.ts new file mode 100644 index 0000000000..ecef81e0d2 --- /dev/null +++ b/src/gen/models/V1DeviceAllocationConfiguration.ts @@ -0,0 +1,60 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1OpaqueDeviceConfiguration } from '../models/V1OpaqueDeviceConfiguration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceAllocationConfiguration gets embedded in an AllocationResult. +*/ +export class V1DeviceAllocationConfiguration { + 'opaque'?: V1OpaqueDeviceConfiguration; + /** + * Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. + */ + 'requests'?: Array; + /** + * Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim. + */ + 'source': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "opaque", + "baseName": "opaque", + "type": "V1OpaqueDeviceConfiguration", + "format": "" + }, + { + "name": "requests", + "baseName": "requests", + "type": "Array", + "format": "" + }, + { + "name": "source", + "baseName": "source", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceAllocationConfiguration.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceAllocationResult.ts b/src/gen/models/V1DeviceAllocationResult.ts new file mode 100644 index 0000000000..8c3022a3d0 --- /dev/null +++ b/src/gen/models/V1DeviceAllocationResult.ts @@ -0,0 +1,54 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceAllocationConfiguration } from '../models/V1DeviceAllocationConfiguration.js'; +import { V1DeviceRequestAllocationResult } from '../models/V1DeviceRequestAllocationResult.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceAllocationResult is the result of allocating devices. +*/ +export class V1DeviceAllocationResult { + /** + * This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. + */ + 'config'?: Array; + /** + * Results lists all allocated devices. + */ + 'results'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "config", + "baseName": "config", + "type": "Array", + "format": "" + }, + { + "name": "results", + "baseName": "results", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceAllocationResult.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceAttribute.ts b/src/gen/models/V1DeviceAttribute.ts new file mode 100644 index 0000000000..21e386ea95 --- /dev/null +++ b/src/gen/models/V1DeviceAttribute.ts @@ -0,0 +1,72 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* DeviceAttribute must have exactly one field set. +*/ +export class V1DeviceAttribute { + /** + * BoolValue is a true/false value. + */ + 'bool'?: boolean; + /** + * IntValue is a number. + */ + '_int'?: number; + /** + * StringValue is a string. Must not be longer than 64 characters. + */ + 'string'?: string; + /** + * VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. + */ + 'version'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "bool", + "baseName": "bool", + "type": "boolean", + "format": "" + }, + { + "name": "_int", + "baseName": "int", + "type": "number", + "format": "int64" + }, + { + "name": "string", + "baseName": "string", + "type": "string", + "format": "" + }, + { + "name": "version", + "baseName": "version", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceAttribute.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceCapacity.ts b/src/gen/models/V1DeviceCapacity.ts new file mode 100644 index 0000000000..5e57fb1cf3 --- /dev/null +++ b/src/gen/models/V1DeviceCapacity.ts @@ -0,0 +1,50 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1CapacityRequestPolicy } from '../models/V1CapacityRequestPolicy.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceCapacity describes a quantity associated with a device. +*/ +export class V1DeviceCapacity { + 'requestPolicy'?: V1CapacityRequestPolicy; + /** + * Value defines how much of a certain capacity that device has. This field reflects the fixed total capacity and does not change. The consumed amount is tracked separately by scheduler and does not affect this value. + */ + 'value': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "requestPolicy", + "baseName": "requestPolicy", + "type": "V1CapacityRequestPolicy", + "format": "" + }, + { + "name": "value", + "baseName": "value", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceCapacity.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClaim.ts b/src/gen/models/V1DeviceClaim.ts new file mode 100644 index 0000000000..34ec6664ed --- /dev/null +++ b/src/gen/models/V1DeviceClaim.ts @@ -0,0 +1,65 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceClaimConfiguration } from '../models/V1DeviceClaimConfiguration.js'; +import { V1DeviceConstraint } from '../models/V1DeviceConstraint.js'; +import { V1DeviceRequest } from '../models/V1DeviceRequest.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClaim defines how to request devices with a ResourceClaim. +*/ +export class V1DeviceClaim { + /** + * This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. + */ + 'config'?: Array; + /** + * These constraints must be satisfied by the set of devices that get allocated for the claim. + */ + 'constraints'?: Array; + /** + * Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. + */ + 'requests'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "config", + "baseName": "config", + "type": "Array", + "format": "" + }, + { + "name": "constraints", + "baseName": "constraints", + "type": "Array", + "format": "" + }, + { + "name": "requests", + "baseName": "requests", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClaim.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClaimConfiguration.ts b/src/gen/models/V1DeviceClaimConfiguration.ts new file mode 100644 index 0000000000..083e569ae3 --- /dev/null +++ b/src/gen/models/V1DeviceClaimConfiguration.ts @@ -0,0 +1,50 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1OpaqueDeviceConfiguration } from '../models/V1OpaqueDeviceConfiguration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. +*/ +export class V1DeviceClaimConfiguration { + 'opaque'?: V1OpaqueDeviceConfiguration; + /** + * Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. + */ + 'requests'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "opaque", + "baseName": "opaque", + "type": "V1OpaqueDeviceConfiguration", + "format": "" + }, + { + "name": "requests", + "baseName": "requests", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClaimConfiguration.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClass.ts b/src/gen/models/V1DeviceClass.ts new file mode 100644 index 0000000000..0744f3083e --- /dev/null +++ b/src/gen/models/V1DeviceClass.ts @@ -0,0 +1,68 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceClassSpec } from '../models/V1DeviceClassSpec.js'; +import { V1ObjectMeta } from '../models/V1ObjectMeta.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. +*/ +export class V1DeviceClass { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + */ + 'apiVersion'?: string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + */ + 'kind'?: string; + 'metadata'?: V1ObjectMeta; + 'spec': V1DeviceClassSpec; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "apiVersion", + "baseName": "apiVersion", + "type": "string", + "format": "" + }, + { + "name": "kind", + "baseName": "kind", + "type": "string", + "format": "" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "V1ObjectMeta", + "format": "" + }, + { + "name": "spec", + "baseName": "spec", + "type": "V1DeviceClassSpec", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClass.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClassConfiguration.ts b/src/gen/models/V1DeviceClassConfiguration.ts new file mode 100644 index 0000000000..515098e8a7 --- /dev/null +++ b/src/gen/models/V1DeviceClassConfiguration.ts @@ -0,0 +1,40 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1OpaqueDeviceConfiguration } from '../models/V1OpaqueDeviceConfiguration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClassConfiguration is used in DeviceClass. +*/ +export class V1DeviceClassConfiguration { + 'opaque'?: V1OpaqueDeviceConfiguration; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "opaque", + "baseName": "opaque", + "type": "V1OpaqueDeviceConfiguration", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClassConfiguration.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClassList.ts b/src/gen/models/V1DeviceClassList.ts new file mode 100644 index 0000000000..3b12d08782 --- /dev/null +++ b/src/gen/models/V1DeviceClassList.ts @@ -0,0 +1,71 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceClass } from '../models/V1DeviceClass.js'; +import { V1ListMeta } from '../models/V1ListMeta.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClassList is a collection of classes. +*/ +export class V1DeviceClassList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + */ + 'apiVersion'?: string; + /** + * Items is the list of resource classes. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + */ + 'kind'?: string; + 'metadata'?: V1ListMeta; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "apiVersion", + "baseName": "apiVersion", + "type": "string", + "format": "" + }, + { + "name": "items", + "baseName": "items", + "type": "Array", + "format": "" + }, + { + "name": "kind", + "baseName": "kind", + "type": "string", + "format": "" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "V1ListMeta", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClassList.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClassSpec.ts b/src/gen/models/V1DeviceClassSpec.ts new file mode 100644 index 0000000000..7d1a67ae44 --- /dev/null +++ b/src/gen/models/V1DeviceClassSpec.ts @@ -0,0 +1,64 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceClassConfiguration } from '../models/V1DeviceClassConfiguration.js'; +import { V1DeviceSelector } from '../models/V1DeviceSelector.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. +*/ +export class V1DeviceClassSpec { + /** + * Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim. + */ + 'config'?: Array; + /** + * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod\'s extended resource requests. It has the same format as the name of a pod\'s extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod\'s extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. + */ + 'extendedResourceName'?: string; + /** + * Each selector must be satisfied by a device which is claimed via this class. + */ + 'selectors'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "config", + "baseName": "config", + "type": "Array", + "format": "" + }, + { + "name": "extendedResourceName", + "baseName": "extendedResourceName", + "type": "string", + "format": "" + }, + { + "name": "selectors", + "baseName": "selectors", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClassSpec.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceConstraint.ts b/src/gen/models/V1DeviceConstraint.ts new file mode 100644 index 0000000000..74adafe1b7 --- /dev/null +++ b/src/gen/models/V1DeviceConstraint.ts @@ -0,0 +1,62 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* DeviceConstraint must have exactly one field set besides Requests. +*/ +export class V1DeviceConstraint { + /** + * DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. + */ + 'distinctAttribute'?: string; + /** + * MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn\'t, then it also will not be chosen. Must include the domain qualifier. + */ + 'matchAttribute'?: string; + /** + * Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the constraint applies to all subrequests. + */ + 'requests'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "distinctAttribute", + "baseName": "distinctAttribute", + "type": "string", + "format": "" + }, + { + "name": "matchAttribute", + "baseName": "matchAttribute", + "type": "string", + "format": "" + }, + { + "name": "requests", + "baseName": "requests", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceConstraint.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceCounterConsumption.ts b/src/gen/models/V1DeviceCounterConsumption.ts new file mode 100644 index 0000000000..51b1c85b44 --- /dev/null +++ b/src/gen/models/V1DeviceCounterConsumption.ts @@ -0,0 +1,53 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1Counter } from '../models/V1Counter.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. +*/ +export class V1DeviceCounterConsumption { + /** + * CounterSet is the name of the set from which the counters defined will be consumed. + */ + 'counterSet': string; + /** + * Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). + */ + 'counters': { [key: string]: V1Counter; }; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "counterSet", + "baseName": "counterSet", + "type": "string", + "format": "" + }, + { + "name": "counters", + "baseName": "counters", + "type": "{ [key: string]: V1Counter; }", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceCounterConsumption.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceRequest.ts b/src/gen/models/V1DeviceRequest.ts new file mode 100644 index 0000000000..141594d4d0 --- /dev/null +++ b/src/gen/models/V1DeviceRequest.ts @@ -0,0 +1,61 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceSubRequest } from '../models/V1DeviceSubRequest.js'; +import { V1ExactDeviceRequest } from '../models/V1ExactDeviceRequest.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests. +*/ +export class V1DeviceRequest { + 'exactly'?: V1ExactDeviceRequest; + /** + * FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. + */ + 'firstAvailable'?: Array; + /** + * Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler. Must be a DNS label. + */ + 'name': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "exactly", + "baseName": "exactly", + "type": "V1ExactDeviceRequest", + "format": "" + }, + { + "name": "firstAvailable", + "baseName": "firstAvailable", + "type": "Array", + "format": "" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceRequest.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceRequestAllocationResult.ts b/src/gen/models/V1DeviceRequestAllocationResult.ts new file mode 100644 index 0000000000..2fb9577cda --- /dev/null +++ b/src/gen/models/V1DeviceRequestAllocationResult.ts @@ -0,0 +1,133 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceToleration } from '../models/V1DeviceToleration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceRequestAllocationResult contains the allocation result for one request. +*/ +export class V1DeviceRequestAllocationResult { + /** + * AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + */ + 'adminAccess'?: boolean; + /** + * BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindingConditions'?: Array; + /** + * BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindingFailureConditions'?: Array; + /** + * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity\'s Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. + */ + 'consumedCapacity'?: { [key: string]: string; }; + /** + * Device references one device instance via its name in the driver\'s resource pool. It must be a DNS label. + */ + 'device': string; + /** + * Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. + */ + 'driver': string; + /** + * This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. + */ + 'pool': string; + /** + * Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
/. Multiple devices may have been allocated per request. + */ + 'request': string; + /** + * ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. + */ + 'shareID'?: string; + /** + * A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + */ + 'tolerations'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "adminAccess", + "baseName": "adminAccess", + "type": "boolean", + "format": "" + }, + { + "name": "bindingConditions", + "baseName": "bindingConditions", + "type": "Array", + "format": "" + }, + { + "name": "bindingFailureConditions", + "baseName": "bindingFailureConditions", + "type": "Array", + "format": "" + }, + { + "name": "consumedCapacity", + "baseName": "consumedCapacity", + "type": "{ [key: string]: string; }", + "format": "" + }, + { + "name": "device", + "baseName": "device", + "type": "string", + "format": "" + }, + { + "name": "driver", + "baseName": "driver", + "type": "string", + "format": "" + }, + { + "name": "pool", + "baseName": "pool", + "type": "string", + "format": "" + }, + { + "name": "request", + "baseName": "request", + "type": "string", + "format": "" + }, + { + "name": "shareID", + "baseName": "shareID", + "type": "string", + "format": "" + }, + { + "name": "tolerations", + "baseName": "tolerations", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceRequestAllocationResult.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceSelector.ts b/src/gen/models/V1DeviceSelector.ts new file mode 100644 index 0000000000..0e75ca886a --- /dev/null +++ b/src/gen/models/V1DeviceSelector.ts @@ -0,0 +1,40 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1CELDeviceSelector } from '../models/V1CELDeviceSelector.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceSelector must have exactly one field set. +*/ +export class V1DeviceSelector { + 'cel'?: V1CELDeviceSelector; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "cel", + "baseName": "cel", + "type": "V1CELDeviceSelector", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceSelector.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceSubRequest.ts b/src/gen/models/V1DeviceSubRequest.ts new file mode 100644 index 0000000000..4fb7f965c7 --- /dev/null +++ b/src/gen/models/V1DeviceSubRequest.ts @@ -0,0 +1,102 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1CapacityRequirements } from '../models/V1CapacityRequirements.js'; +import { V1DeviceSelector } from '../models/V1DeviceSelector.js'; +import { V1DeviceToleration } from '../models/V1DeviceToleration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to ExactDeviceRequest, but doesn\'t expose the AdminAccess field as that one is only supported when requesting a specific device. +*/ +export class V1DeviceSubRequest { + /** + * AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This subrequest is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. + */ + 'allocationMode'?: string; + 'capacity'?: V1CapacityRequirements; + /** + * Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. + */ + 'count'?: number; + /** + * DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. + */ + 'deviceClassName': string; + /** + * Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format
/. Must be a DNS label. + */ + 'name': string; + /** + * Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered. + */ + 'selectors'?: Array; + /** + * If specified, the request\'s tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + */ + 'tolerations'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "allocationMode", + "baseName": "allocationMode", + "type": "string", + "format": "" + }, + { + "name": "capacity", + "baseName": "capacity", + "type": "V1CapacityRequirements", + "format": "" + }, + { + "name": "count", + "baseName": "count", + "type": "number", + "format": "int64" + }, + { + "name": "deviceClassName", + "baseName": "deviceClassName", + "type": "string", + "format": "" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + }, + { + "name": "selectors", + "baseName": "selectors", + "type": "Array", + "format": "" + }, + { + "name": "tolerations", + "baseName": "tolerations", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceSubRequest.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceTaint.ts b/src/gen/models/V1DeviceTaint.ts new file mode 100644 index 0000000000..c9b8301b84 --- /dev/null +++ b/src/gen/models/V1DeviceTaint.ts @@ -0,0 +1,72 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. +*/ +export class V1DeviceTaint { + /** + * The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. + */ + 'effect': string; + /** + * The taint key to be applied to a device. Must be a label name. + */ + 'key': string; + /** + * TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. + */ + 'timeAdded'?: Date; + /** + * The taint value corresponding to the taint key. Must be a label value. + */ + 'value'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "effect", + "baseName": "effect", + "type": "string", + "format": "" + }, + { + "name": "key", + "baseName": "key", + "type": "string", + "format": "" + }, + { + "name": "timeAdded", + "baseName": "timeAdded", + "type": "Date", + "format": "date-time" + }, + { + "name": "value", + "baseName": "value", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceTaint.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceToleration.ts b/src/gen/models/V1DeviceToleration.ts new file mode 100644 index 0000000000..766e7913f6 --- /dev/null +++ b/src/gen/models/V1DeviceToleration.ts @@ -0,0 +1,82 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator . +*/ +export class V1DeviceToleration { + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. + */ + 'effect'?: string; + /** + * Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name. + */ + 'key'?: string; + /** + * Operator represents a key\'s relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category. + */ + 'operator'?: string; + /** + * TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as